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!

 採用された回答

David Hill
David Hill 2021 年 3 月 23 日

0 投票

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

2021 年 3 月 23 日

コメント済み:

2021 年 3 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by