How to combine multiple columns into array?

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일

0 개 추천

Two ways
array = cat( 2, col1, col2, col3, col4, col5 );
array = [ col1, col2, col3, col4, col5 ];

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

질문:

2020년 9월 2일

편집:

2020년 9월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by