problem with cell arrays
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Jan
le 23 Oct 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
Réponses (0)
Voir également
Catégories
En savoir plus sur Cell Arrays dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!