MATLAB Answers

Plot figure on open GUI instead of new figure window

20 views (last 30 days)
SatyaPrakash Gupta
SatyaPrakash Gupta on 13 Jan 2020
Commented: hadar shaulian on 20 Apr 2021 at 12:13
Hello Together,
I have a GUI where i call the main funtion via callback function of GUI.
the main function open another figure window , i would like to open this figure on gui itself
could you please do help me out how shall i proceed with it ?
thank you

Accepted Answer

Selva Karna
Selva Karna on 13 Jan 2020
axes(handles.axes1);
imshow(yourimage);
  2 Comments
hadar shaulian
hadar shaulian on 20 Apr 2021 at 12:13
When wrting this line in my Matlab 2020b GUI (after creating the proper axis in the Matlab guide tool):
axes(handles.axes1);
I get an error: "Unable to resolve the name handles.axes1"
Any idea how to solve this?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!