How to combine multiple columns into array?

230 ビュー (過去 30 日間)
pink flower
pink flower 2020 年 9 月 2 日
編集済み: per isakson 2020 年 9 月 2 日
I have 5 columns and I would like to join them and form a matrix with n rows and 5 columns. How can I do this?

採用された回答

per isakson
per isakson 2020 年 9 月 2 日
編集済み: per isakson 2020 年 9 月 2 日
Two ways
array = cat( 2, col1, col2, col3, col4, col5 );
array = [ col1, col2, col3, col4, col5 ];

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by