How can I organize image and text in a figure?

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)?

 Risposta accettata

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

2 Commenti

Thank you very much!
It works well using "axes" command!

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Interactive Control and Callbacks in Centro assistenza e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by