필터 지우기
필터 지우기

cropping the matrix size

조회 수: 9 (최근 30일)
Sasi umaiyal
Sasi umaiyal 2016년 12월 1일
댓글: Sasi umaiyal 2016년 12월 1일
i have a matrix of 200*200*200 and i want to convert this into 26*200*200. is this possible?

채택된 답변

Adam
Adam 2016년 12월 1일
Yes, just use colon notation
doc colon
e.g.
myMatrix = myMatrix( 1:26, :, : )
but obviously it depends what you want the 26 to be and if you are just discarding the other 174 or whether you are expecting to do some kind of maths to combine 200 down into 26 which would be a differentproblem entirely.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by