reshaping a matrix dimension
5 ビュー (過去 30 日間)
古いコメントを表示
Hi, I have a 2x60 matrix and I want to reshape it to a 120x1 matrix. How can I do that?
0 件のコメント
採用された回答
Star Strider
2014 年 12 月 24 日
It depends on how you want the (120x1) matrix to look. Here are two possibilities:
A = [1:5; 6:10];
B1 = reshape(A, [], 1);
B2 = reshape(A', [], 1);
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!