reshape 3d to 2d array

3 views (last 30 days)
mohamed Faraj
mohamed Faraj on 4 Sep 2019
Edited: Bruno Luong on 4 Sep 2019
I have a 1 by 20 by 3 array and want to reshape it to 3 by 20 matrix

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 4 Sep 2019
squeeze()
transpose()

More Answers (1)

Bruno Luong
Bruno Luong on 4 Sep 2019
Edited: Bruno Luong on 4 Sep 2019
Not RESHAPE, but PERMUTE (there is movement in internal storage, and it more expansive than RESHAPE)
A = permute(A, [3 2 1]);

Categories

Find more on Graphics Object Programming in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!