subplot - how to have the same aspect ratio ?
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
RuiQi
am 16 Mai 2017
Beantwortet: Walter Roberson
am 16 Mai 2017
I am using subplot to imshow() a rgb image and imagesc() an integer array. Both matrices have the same rows and columns. I would like to know how I can 'reshape' both of them in the subplot so that they share the same original aspect ratio. Currently only the image drawn with imshow has the right aspect ratio.
figure;
subplot(1,2,1);
imshow(image_rgb);
subplot(1,2,2);
imagesc(reshape(idx,COLS,ROWS)')
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/164120/image.png)
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Subplots 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!