Reshaping the matrix in specific order
2 ビュー (過去 30 日間)
古いコメントを表示
Dear all,
Lets say I have array of multiple of 6. I want to reshape that array into matrix such as there are extactly 6 columns. Lets take example,
a = [1:18]
b = reshape(a, [3 6])
I want the output should be
1 2 3 4 5 6
7 8 9 10 11 12
13 14 15 16 17 18
Anyone can help how to do it ?
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!