I have a matrix 16 x 61. I want to reshape it into a one column vector, where the order would be: take all 61 column values from the first row, then append another 61 values from the second row, and repeat until 16th row... I know I should probably use reshaping somehow...
Thank you!

 채택된 답변

David Hill
David Hill 2021년 3월 23일

0 개 추천

a=yourmatrix';
newVector=a(:);

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

질문:

2021년 3월 23일

댓글:

2021년 3월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by