필터 지우기
필터 지우기

x y plot over a long period of time

조회 수: 15 (최근 30일)
Patrick Lydon
Patrick Lydon 2017년 6월 29일
답변: Walter Roberson 2017년 6월 29일
Hi,
I am plotting an x y plot with time on the x axis. Each tenth of a second there are 500 point, so 5000 points every second. I want to look at the data over the span of at least a minute, hopefully more.
First off, is there any problem with this? Will this overload matlab somehow? Do I need to change a variable to "long"?
Secondly, and more importantly, what is the best way to graph this and view/scroll through it. Right now the graph is so scrunched up in the horizontal direction you cant see anything that is going on. I would like to scale it so the graph is spread out in the x direction so you can easily see all the points clearly. Is there a function I could use? I tried using zoomOrientation but I have R2011b and it doesnt seem to work with that old of a version. Any other recommendations?
Patrick

채택된 답변

Walter Roberson
Walter Roberson 2017년 6월 29일
If you add a lot of points individually, there will be a performance penalty. If you are adding them in batches and you do not need them to be connected, then it can be more efficient to use scatter() to add them as a scatter plot.
Unfortunately you cannot use animatedline() as that is newer than your version.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Scatter Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by