How can i update data in the figure window in MATLAB GUI using pushbutton callback?
Show older comments
I have MATLAB GUI, which plots data in figure using pushbutton callback
Even though the figure window is updating the data for every iteration inside the for loop, it is not able to hold and display the data from previous iteration of the for loop.
I have tried 'hold on' option but it does not work for the GUI case
How can i fix it.
6 Comments
Dennis
on 23 Nov 2018
'Does not work' is a poor description of the problem. Without having seen your code either it is unlikely that someone will find your error.
Walter Roberson
on 23 Nov 2018
guidata does not have anything to do with plots being erased . plots get erased if hold on is not in effect or if there is a cla or clf
VBBV
on 23 Nov 2018
Luna
on 23 Nov 2018
Where is your hold on then?
Accepted Answer
More Answers (0)
Categories
Find more on Interactive Control and Callbacks 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!