How to remove data from a real-time plot after a certain period of time?

2 次查看(过去 30 天)
I am using the animatedline function to plot real time data which is inputted to Matlab from another system.
The data plots multiple loops (circles) but after the first few loops it is difficult to see where the current loop is exactly.
Is there a way to remove the data that has been plotted after a certain amount of time or only display x number of data points?
Thank you!

采纳的回答

Bruno Luong
Bruno Luong 2019-8-12
Have you seen the 'MaximumNumPoints' option of animatedline()?

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Animation 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by