How to combine multiple columns into array?
조회 수: 237 (최근 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에서 Multidimensional Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!