Cell 2 Multidimensional Array Conversion

8 次查看(过去 30 天)
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 个评论
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