MATLAB Answers

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

7 views (last 30 days)
ramya sharma
ramya sharma on 11 Apr 2016
Commented: Clément P on 11 Apr 2016
After pressing a push button in main gui ,how to get image in another figure(window)

  0 Comments

Sign in to comment.

Answers (1)

Clément P
Clément P on 11 Apr 2016
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 Comments

Clément P
Clément P on 11 Apr 2016
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;

Sign in to comment.

Sign in to answer this question.


Translated by