Converting 2D Array to 3D

1 view (last 30 days)
Saeid
Saeid on 16 Mar 2019
Edited: Saeid on 16 Mar 2019
How can I convert a 2D array to a 3D array in the following form?

Accepted Answer

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

More Answers (0)

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!