problem with cell arrays
조회 수: 1 (최근 30일)
이전 댓글 표시
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
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 Center 및 File Exchange에서 Cell Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!