How to change the size of the matrix?

조회 수: 1 (최근 30일)
Sophia
Sophia 2016년 11월 16일
답변: Image Analyst 2016년 11월 16일
I have a matrix of the size of 119*177 and i am comparing the results with another matrix which is of the size 361*361.. IS there a way i can change the 119*177 to 361*361 and then can use difference to compare the results.

채택된 답변

Image Analyst
Image Analyst 2016년 11월 16일
You can use imresize():
m2 = imresize(m, [361,361]);
There are different sizing options for imresize(), like 'bilinear' or 'nearest', etc. so be sure to check out the documentation.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by