reshaping matrix with odd number of total elements
조회 수: 6 (최근 30일)
이전 댓글 표시
how can I reshape a 63X5 matrix (315 elements) into a mX2 , and a mX4 matrix?
댓글 수: 2
Walter Roberson
2018년 10월 28일
If the data were in the order
A1 B1 C1 D1 E1
A2 B2 C2 D2 E2
A3 B3 C3 D3 E3
and so on, then what would be the desired output order?
채택된 답변
추가 답변 (1개)
Bruno Luong
2018년 10월 28일
You can't
댓글 수: 1
Walter Roberson
2018년 10월 28일
At least not without either discarding elements or padding with something.
참고 항목
카테고리
Help Center 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!