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

조회 수: 4 (최근 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()?
  댓글 수: 1
dpb
dpb 2019년 8월 12일
Thanks Bruno, I keep forgetting about the animated line having been introduced...

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Exploration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by