x y plot over a long period of time

7 次查看(过去 30 天)
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 中查找有关 Animation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by