Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
Carol Smyth
Carol Smyth le 12 Août 2019
Commenté : dpb le 12 Août 2019
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!

Réponse acceptée

Bruno Luong
Bruno Luong le 12 Août 2019
Have you seen the 'MaximumNumPoints' option of animatedline()?
  1 commentaire
dpb
dpb le 12 Août 2019
Thanks Bruno, I keep forgetting about the animated line having been introduced...

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Animation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by