reshaping a matrix dimension
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi, I have a 2x60 matrix and I want to reshape it to a 120x1 matrix. How can I do that?
댓글 수: 0
채택된 답변
Star Strider
2014년 12월 24일
It depends on how you want the (120x1) matrix to look. Here are two possibilities:
A = [1:5; 6:10];
B1 = reshape(A, [], 1);
B2 = reshape(A', [], 1);
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 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!