Reshaping a matrix into column

I have a matrix 16 x 61. I want to reshape it into a one column vector, where the order would be: take all 61 column values from the first row, then append another 61 values from the second row, and repeat until 16th row... I know I should probably use reshaping somehow...
Thank you!

 Respuesta aceptada

David Hill
David Hill el 23 de Mzo. de 2021
a=yourmatrix';
newVector=a(:);

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Preguntada:

el 23 de Mzo. de 2021

Comentada:

el 23 de Mzo. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by