Updating data in a plot in UIAxes
Show older comments
Hi,
As part of my program, I am developing an app.
The app requires me to present some results as plots (6 plots) that must be updated every two seconds.
Using 'drawnow' causes the processing to be slow.
I need to use the command 'refreshdata', however, it does not appear to work the same way as the code I developed as a .m file.
It would be greatly appreciated if anyone could provide me with some guidance on this subject.
Answers (2)
Aditya
on 24 Aug 2022
Moved: Cris LaPierre
on 24 Aug 2022
0 votes
1 Comment
MOSTAFA GOMAR
on 24 Aug 2022
Cris LaPierre
on 24 Aug 2022
0 votes
In an app, for this situation, I prefer updating the XData and YData of the line rather than replotting. See this answer:
1 Comment
MOSTAFA GOMAR
on 24 Aug 2022
Categories
Find more on Startup and Shutdown 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!