reshape the dimension of a matrix
조회 수: 7 (최근 30일)
이전 댓글 표시
I have a matrix of 288 x 234 and I want to reshape it to 360 x 180 is it possible? I have nan value in the mat.
Thank you in advance
댓글 수: 0
답변 (1개)
Tyler
2017년 6월 19일
The simple answer is no, those arrays do not have the same number of elements. But if you can explain why you want to reshape the array, that will get to the root of the problem and help others answer it. If you're trying to get rid of nan values, you can use the isnan command, and after getting rid of those, if the number of elements is the same you could use the reshape function.
참고 항목
카테고리
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!