Converting 2D Array to 3D

8 visualizzazioni (ultimi 30 giorni)
Saeid
Saeid il 16 Mar 2019
Modificato: Saeid il 16 Mar 2019
How can I convert a 2D array to a 3D array in the following form?

Risposta accettata

madhan ravi
madhan ravi il 16 Mar 2019
permute(reshape(A,I/3,[],J),[1,3,2]) % A - matrix, I - no of rows, J - no of columns

Più risposte (0)

Categorie

Scopri di più su Matrices and Arrays 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