Converting 2D Array to 3D

How can I convert a 2D array to a 3D array in the following form?

 Accepted Answer

permute(reshape(A,I/3,[],J),[1,3,2]) % A - matrix, I - no of rows, J - no of columns

More Answers (0)

Categories

Asked:

on 16 Mar 2019

Edited:

on 16 Mar 2019

Community Treasure Hunt

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

Start Hunting!