Delete a dimension from a 3d array to convert into a 2d array (Matrix)
조회 수: 11 (최근 30일)
이전 댓글 표시
I have an array of the following dimensions 1x3500x250. I want to delete this one extra dimension and convert it into 3500x250 2d array matrix in Matlab. How do I do it?
댓글 수: 0
채택된 답변
Guillaume
2019년 12월 5일
squeeze(yourarray)
or
permute(yourarray, [2 3 1])
squeeze is simpler and will get rid of all singleton dimensions.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!