How to combine multiple columns into array?

조회 수: 237 (최근 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 CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by