How to reshape a vector in a particular way
이전 댓글 표시
I got a column vector
a = [a1 a2 a3 ... an-1 an]'
and I wanna rearrange that in the following matrix
b = [a1 a2;a3 a4; ...; an-1 an]
like the first two pairs are the rows of the matrix, any tips on how achieve this?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!