problem with cell arrays

1 次查看(过去 30 天)
alireza amiri
alireza amiri 2017-10-23
评论: Jan 2017-10-23
Hi when run my programm,i have cell 5D (3*3) but i cant see array of this.i want all of arrays in one step for use in ploting.
and can i transfer this cells to exel(arrays are imaginative) ?
i attach shot of page cell 5D
thanks
for l=2
for m=1:8
K=1:.25:3;
for kindex=1:9
for j=1:8
for n=[0, 1]
A(l, m, kindex, j, n+1, :, :)=[a11vec(l, m, kindex, j, n+1),a12vec(l, m, kindex, j, n+1),a13vec(l, m, kindex, j);a21vec(l, m, kindex, j, n+1),a22vec(l, m, kindex, j, n+1),a23vec(l, m, kindex, n+1);a31vec(l, m, kindex, j),a32vec(l, m, kindex, n+1),a33vec(l, m, kindex, j, n+1)];
Mj(l, m, kindex, :, :)=[Mjvec(l, m, kindex),0,0;0,Mjvec(l, m, kindex),0;0,0,Mjvec(l, m, kindex)];
F = -1*inv(squeeze(Mj(l, m, kindex, :, :)))*squeeze(A(l, m, kindex, j, n+1, :, :));
[U,R]=eig(F)
CellR{l, m, kindex, j, n+1} = num2cell(R);
CellU{l, m, kindex, j, n+1} = num2cell(U);
end
end
end
end
end
  2 个评论
KSSV
KSSV 2017-10-23
Read about cell2mat.
Jan
Jan 2017-10-23
What is "cell 5D (3*3)"? What does "all of array in one step" mean? Why are array imaginative?
Avoid using inv() but use the slash operator as explained in help inv.
Do you really want nested cells? If not, use:
CellR{l, m, kindex, j, n+1} = R; % Without num2cell

请先登录,再进行评论。

回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by