Filter löschen
Filter löschen

problem with cell arrays

3 Ansichten (letzte 30 Tage)
alireza amiri
alireza amiri am 23 Okt. 2017
Kommentiert: Jan am 23 Okt. 2017
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 Kommentare
KSSV
KSSV am 23 Okt. 2017
Read about cell2mat.
Jan
Jan am 23 Okt. 2017
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

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by