Finding transpose of values.

2 次查看(过去 30 天)
ts = xlsread('ArrowHead_TRAIN.xlsx');
for i = 1:100
b=20
p=ts(i,:);
n= numel(p);
Z=mat2cell(p,diff([0:b:n-1,n]));
A=transpose(Z);
celldisp(A)
end
I want to find the transpose of Z values.I need the elements of Z in an array order.I used transpose,but not working.How can I get the elements of Z in an array form.Please help me.

采纳的回答

Walter Roberson
Walter Roberson 2019-11-6
ts = xlsread('ArrowHead_TRAIN.xlsx');
for i = 1 : size(ts,1)
b = 20;
p = ts(i,:);
n = numel(p);
Z = mat2cell(p, 1, diff([0:b:n-1,n]));
A = cellfun(@transpose, Z, 'uniform', 0);
celldisp(A)
end
  2 个评论
Silpa K
Silpa K 2019-11-6
Thank you sir. How can I get result in row wise.I need a result in row wise.
Walter Roberson
Walter Roberson 2019-11-6
The result is row-wise if you do not do the transpose.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by