How to combine multiple columns into array?
139 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!