How can I convert 2-D array to 1-D array.
古いコメントを表示
I am using a variable oprtn_pts. whose size is 3 2.
I want to convert this into 6*1. How can I do this?
採用された回答
その他の回答 (1 件)
Wayne King
2012 年 9 月 18 日
編集済み: Wayne King
2012 年 9 月 18 日
oprtn_pts = randn(3,2);
oprtn_pts = reshape(a,6,1);
It takes the elements from oprtn_pts columnwise.
3 件のコメント
Bhavnish
2012 年 9 月 18 日
Andrei Bobrov
2012 年 9 月 18 日
Hi Bhavnish! Please see my answer.
Bhavnish
2012 年 9 月 18 日
カテゴリ
ヘルプ センター および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!