필터 지우기
필터 지우기

How to zoom out / shrink the matrix to the desired matrix

조회 수: 10 (최근 30일)
Yiqing Zhou
Yiqing Zhou 2018년 3월 10일
편집: Stephen23 2018년 3월 12일
Hi guys, I have a question. I have an 8 by 8 matrix for instance, and I tried to shrink it into 5 by 5 matrix. Does the Matlab have the way to do that? I try to extract the odd element in rows and columns but it cannot the exact size of the matrix I want. For example Y = I(1:2: end,1:2: end) and in 8 by 8 matrix case, it will only output the 4 by 4 matrix. Thank you

채택된 답변

Stephen23
Stephen23 2018년 3월 10일
편집: Stephen23 2018년 3월 12일
  댓글 수: 4
Walter Roberson
Walter Roberson 2018년 3월 12일
interp2(M, V, V.')
Yiqing Zhou
Yiqing Zhou 2018년 3월 12일
It works, thank you, Roberson.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by