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!

 Akzeptierte Antwort

David Hill
David Hill am 23 Mär. 2021

0 Stimmen

a=yourmatrix';
newVector=a(:);

Weitere Antworten (0)

Kategorien

Gefragt:

am 23 Mär. 2021

Kommentiert:

am 23 Mär. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by