reshape 3d to 2d array

7 visualizaciones (últimos 30 días)
mohamed Faraj
mohamed Faraj el 4 de Sept. de 2019
Editada: Bruno Luong el 4 de Sept. de 2019
I have a 1 by 20 by 3 array and want to reshape it to 3 by 20 matrix

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 4 de Sept. de 2019
squeeze()
transpose()

Más respuestas (1)

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

Categorías

Más información sobre Interpolation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by