社区资料

照片

Stephen23


自2014年以来活跃

Sustensa Vix通过Fit

专业利益:

统计数据

All
  • 大多数接受的2021
  • 大师
  • Personal Best Downloads Level 4
  • 编辑的选择
  • First Review
  • 5星银河级5
  • Github提交3级
  • 首先提交
  • 36 Month Streak
  • Thankful Level 5
  • 复兴级别2
  • Knowledgeable Level 5

View badges

内容提要

回答
How to store multiple output tables in a cell array
使用MATLAB,更容易且通用性更容易循环索引,而不是循环浏览数据。这使得易于prealloca ...

ALREDEDOR de 3 Horas前|0

|accepted

回答
How can I separate the elements of a vector ?
for jj = i(diff(i)~=0) or for jj = unique(i,'stable')

ALREDEDOR de 3 Horas前|0

|accepted

回答
创建矩阵时的值来考虑乘法
A = [2,1,4,3;10,15,20,10;20,10,15,20] B = [1,3,4;4,5,6;2,1,4;3,5,1] C = [50;100;25;10] lkp = [10,15,20]; idx = A(1,:); [~,i...

alrededor de 7 horas ago | 0

|accepted

回答
How to read floating point number 5.3246-5 as 5.3246E-5 in text file
str = '9.4345-51.8998772.518305'; tmp = cellstr(reshape(str,8,[]).'); tmp = regexprep(tmp,'(?<=\d)([-+]\d+)$','E$1') vec = st...

1día以前|0

回答
如何在三维阵列上制作二维面膜?
“我想知道是否有任何整齐的技巧可以通过数组乘法来做……” a = 9*一个(6,4,3);%创建一个3维数组...

1día以前|0

回答
How to create a matrix with special block diagonal structure
n = 8;c = arrayfun(@ons,1:n,'uni',0);b = tril(blkdiag(c {:}));间谍(b)

2días以前|0

回答
从CSV数据中删除文本
str = readlines('20220427T131641-2D.CSV');idx = startswith(str,digitspattern);Writelines(str(idx),'new.csv')检查:styp ...

2días以前|0

|accepted

回答
How can I get my function that calculates distance between data and user input with sort data and closest data set from file
V = [2,5,7];m = readmatrix('somedata.xlsx')d = vecnorm(m-v,2,2)[x,y] = mink(d,d,2)z = m(y,:)

2días以前|0

|accepted

回答
In a 6x6 square matrix A, how to select elements in i-th row with A(i,j) ruled out
A = [0,0,-1,1;1,1,0,0;0,0,1,0;1,-1,0,1] B = +diag(diag(A) & ~any(A-eye(size(A)),2))

3días以前|0

回答
将下部外壳转换为上和上部
str ='123 Hello World!';str = regexprep(str,'[a-za-z]+','$ {char(mod($&-97,64)+65)}')

4días以前|0

回答
我们如何将数字转换为字符串值,并具有数字中存在的确切数字数?
sprintf('%.15g',0.0199155) sprintf('%.15g',0.01991556789) sprintf('%.15g',23456.7891234)

7días以前|0

|accepted

回答
find first& end of array
S = [0,1,5,2,0,0,0,9,3,50,53,0,0,5,7,4] X = diff([0;S(:)]==0)<0 | diff([S(:);0]==0)>0; V = S(X)

7días以前|0

|accepted

回答
separating numbers in cells
假设您具有字符向量的单元格数组:C = {'1-8','7-1','8-4';'4-6','8-5','7-3'}d = split(c,' - ');a = str ...

8 días ago | 0

|accepted

回答
如何找到矩阵的第一个绝对最小入口的索引
a = [5,7,0.5,5; 2,0.5,4,1; 0.5,6,7,9];[v,x] = min(a。',[],'all');[c,r] = ind2sub(size(a),x)

8 días ago | 0

回答
关于MATLAB中的ImportData(文件名)函数
"I have created two .dat files using a same perl script, but on different machines." And they have created different files. "C...

8 días ago | 0

回答
TUTORIAL: Comma-Separated Lists and How to Use Them
A common misunderstanding of comma-separated lists involves nested structures. The expectation is that dot-indexing at arbitrary...

9 días ago | 0

回答
Evaluating a function with Matlab
“任何人都可以帮助我弄清楚为什么我会在以下代码中获得一个虚构的数字:“因为您正在掌握...的力量...

9 días ago | 0

|accepted

回答
将Excel数据存储在矩阵中,使用for loop
n = 4; A = zeros(n,20); F = 'filename.xyz'; for y = 1:n S = sprintf('sheetname_%d',y); A(y,:) = readmatrix(F, 'Shee...

11días以前|0

回答
根据唯一值的数量创建新矩阵
Those three matrices are a red-herring. M = [4,7,2;2,4,7;2,2,4] [U,~,X] = unique(M(:)); S = accumarray(X,M(:)) [~,Y] = max(S...

13días以前|1

|accepted

回答
在矩阵中总和一列
F = @(t) sum(t{:,7}); V = cellfun(F,Tables)

14días以前|1

|accepted

回答
How can I avoid using addpath to read files outside Matlab's search folder?
" Is it correct that before files can be read by Matlab, the folder where files are located have to be added to Matlab's search ...

14días以前|0

|accepted

回答
How to use outerjoin for multiple files
fnm = compose("file%d.csv",1:5); tbl = readtable(fnm(1)); tbl.Properties.VariableNames = {'Key1','Var1'}; for k = 2:numel(fnm...

14días以前|1

|accepted

回答
计算名称的结果
str = ["Sam";"Joe";"TPG, Sam, Joe";"TPG, Joe"] spl = regexp(str,',','split'); [uni,~,idx] = unique(strtrim([spl{:}])); cnt = ...

15días以前|1

回答
在函数中发挥功能
syms x g = 5*x f = g+3

15días以前|0

回答
extract a number within brackets from a cell of a table
txt = '(2.59836893721600e+01dB,0.00000000000000e+00°)' num = sscanf(txt,'(%f')

15días以前|0

回答
我想在工作区中的文件循环
“假设我的工作区中有data1,data2,...和datan。”假设您没有手工命名它们,而是...

15días以前|0

|accepted

回答
从表中提取特定数据
idx = startsWith(valores_sensores.ID,'ILM_'); % or CONTAINS SensorILM = valores_sensores(idx,:)

15días以前|0

|accepted

回答
Concatenating matrix with specific cell in cell aray
C = {'hello',[1,2,5];'world',[3,5]} V = [4,5]; F = @(a)union(V,a); C(:,2) = cellfun(F,C(:,2),'uni',0)

18 días ago | 0

回答
How can I create a 2-term, 1-by-1 string using sprintf?
这是一种导入这些不好命名变量的方法,假设每个垫子文件完全一个变量:n = 17;c =单元格(1,n);叉子...

18 días ago | 0

|accepted

回答
在字符串的单元格中找到精确的弦匹配
c = {'这是xyz1','这是xyz11','这是xyz1111','这是xyz1.0'};str ='xyz1';rgx = sprintf('%s(?= $ | \\ s)',str);reg ...

20 días ago | 1

|accepted

装载更多