How can I organize image and text in a figure?

1 次查看(过去 30 天)
I use 'postion' to get a fixed size figure:
figure('name','Label','position',[680 150 500 650]);
I use "imshow" to put an image in this figure:
imshow(imageName);
Then, unfortunately, the figure automatically resizes to the image's size!
How to avoid this? And how to set the image position in figure using imshow (I want to put the image near the top and put some text blow the image)?

采纳的回答

Salahuddin Bangash
Salahuddin Bangash 2018-12-16
axes('Position',[0.65,0.7,0.28,0.28])
imshow('ImageName');
or
subplot(2,1,1)%m.n.p
imshow(imageName);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Display Image 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by