Cell 2 Multidimensional Array Conversion

조회 수: 8 (최근 30일)
Maria Saleem
Maria Saleem 2020년 11월 2일
댓글: Stephen23 2020년 11월 2일
Hi, I have a 420 X 1 cell array, A, and each cell contains an 70000 x 100 matrix,How can I get 420 X 70000 X 100 ?

채택된 답변

Stephen23
Stephen23 2020년 11월 2일
편집: Stephen23 2020년 11월 2일
  댓글 수: 2
Maria Saleem
Maria Saleem 2020년 11월 2일
Thanks , But its giving 420 X 100 X 70000
Stephen23
Stephen23 2020년 11월 2일
" But its giving 420 X 100 X 70000"
Try changing the permute order:
permute(..,[3,2,1])

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Maria Saleem
Maria Saleem 2020년 11월 2일
편집: Maria Saleem 2020년 11월 2일
I tried to use this one , but no result
Also , I tried this code:
for i = 1:420
for j = 1:100
Aa = A{i,1}(:,j);
As(i,:,j) = Aa;
end
end

카테고리

Help CenterFile Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by