How can I display a plot in gui from another mfile?
1 view (last 30 days)
Show older comments
Hi,
I have an mfile that creates a plot H and creates a figure. And within that file, I did setappdata(0, 'Figure', H);
In my gui file I have an axes (with the tag axes2) and I'm trying to get the plot H from my other mfile by calling H = getappdata(0, 'Figure');
I'm not very familiar with guis so I don't know how I can display the plot I created in my gui? I tried imshow(H, 'Parent' handles.axes2); but that didn't quite work. Could anyone help with this? Or know a better way?
Thank you so much!
0 Comments
Answers (0)
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!