matrix reshaping
古いコメントを表示
Does someone know how to reshape an array for example: A=[1 5; 2 4; 5 6] to an array B=(1,6) to be like this: B=[1 5 2 4 5 6];
Thank you...
採用された回答
その他の回答 (2 件)
Honglei Chen
2011 年 11 月 17 日
You can try
B = A.';
B = B(:).';
カテゴリ
ヘルプ センター および File Exchange で Matrices and Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!