Cell 2 Multidimensional Array Conversion

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 ?

 Akzeptierte Antwort

Stephen23
Stephen23 am 2 Nov. 2020
Bearbeitet: Stephen23 am 2 Nov. 2020

0 Stimmen

2 Kommentare

Maria Saleem
Maria Saleem am 2 Nov. 2020
Thanks , But its giving 420 X 100 X 70000
" But its giving 420 X 100 X 70000"
Try changing the permute order:
permute(..,[3,2,1])

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Maria Saleem
Maria Saleem am 2 Nov. 2020
Bearbeitet: Maria Saleem am 2 Nov. 2020

0 Stimmen

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

Kategorien

Mehr zu Operators and Elementary Operations finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by