After pressing a push button in main gui ,how to get image in another figure

Antworten (1)

Hi,
If you just want to plot in a new figure, you need to create a figure like this :
h=figure('Name','Plot','NumberTitle','off');
Then you can use the plot function.

2 Kommentare

Thank you.But i need to display image
Then you need to use the image function. For exemple if your image is a .png file :
figure ('Name','Image','NumberTitle','off');
img=imread('image.png');
image(img);
axis off;

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Images finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 11 Apr. 2016

Kommentiert:

am 11 Apr. 2016

Community Treasure Hunt

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

Start Hunting!

Translated by