reshape 3d to 2d array

7 次查看(过去 30 天)
I have a 1 by 20 by 3 array and want to reshape it to 3 by 20 matrix

采纳的回答

Fangjun Jiang
Fangjun Jiang 2019-9-4
squeeze()
transpose()

更多回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Interpolation 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by