필터 지우기
필터 지우기

problem with cell arrays

조회 수: 3 (최근 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에서 Data Type Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by