Updating data in a plot in UIAxes
显示 更早的评论
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.
回答(2 个)
Aditya
2022-8-24
移动:Cris LaPierre
2022-8-24
0 个投票
Cris LaPierre
2022-8-24
0 个投票
In an app, for this situation, I prefer updating the XData and YData of the line rather than replotting. See this answer:
类别
在 帮助中心 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!