How to change the size of the matrix?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Sophia
am 16 Nov. 2016
Beantwortet: Image Analyst
am 16 Nov. 2016
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.
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 16 Nov. 2016
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Interpolation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!