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

조회 수: 2 (최근 30일)
ramya sharma
ramya sharma 2016년 4월 11일
댓글: Clément P 2016년 4월 11일
After pressing a push button in main gui ,how to get image in another figure(window)

답변 (1개)

Clément P
Clément P 2016년 4월 11일
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
ramya sharma
ramya sharma 2016년 4월 11일
Thank you.But i need to display image
Clément P
Clément P 2016년 4월 11일
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;

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by