Understanding and using guihandles programmatically
Show older comments
Hi
I am programmatically creating a GUI interface with a number of plots that connects to an outside function in the callback. The outside function creates new values for the plots and I want to be able to update the plots from that function (the part of the function that updates the plots is run in a timer). I am confused by guidata and guihandles and how to approach this. In another program I tried just passing in the axes handle and that didn't work anyway. This time I have multiple axes to update so I'd prefer to pass them all in in one object if I can.
I created a figure and the myHandles reference, and I can see when I add tags to my uicontrols that they are stored in myHandles. I presume I pass myHandles to my outside function, but I'm not sure how to update them from that function so the graph is updated.
f = figure;
myhandles = guihandles(f);
Thanks
Accepted Answer
More Answers (1)
Rebecca Prescott
on 7 May 2016
Edited: Rebecca Prescott
on 7 May 2016
0 votes
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!