Converting 2D Array to 3D

1 Ansicht (letzte 30 Tage)
Saeid
Saeid am 16 Mär. 2019
Bearbeitet: Saeid am 16 Mär. 2019
How can I convert a 2D array to a 3D array in the following form?

Akzeptierte Antwort

madhan ravi
madhan ravi am 16 Mär. 2019
permute(reshape(A,I/3,[],J),[1,3,2]) % A - matrix, I - no of rows, J - no of columns

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help 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