Cell 2 Multidimensional Array Conversion

8 visualizzazioni (ultimi 30 giorni)
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 ?

Risposta accettata

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

Accedi per commentare.

Più risposte (1)

Maria Saleem
Maria Saleem il 2 Nov 2020
Modificato: Maria Saleem il 2 Nov 2020
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

Categorie

Scopri di più su Operators and Elementary Operations in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by