Clear Filters
Clear Filters

x y plot over a long period of time

15 views (last 30 days)
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

Accepted Answer

Walter Roberson
Walter Roberson on 29 Jun 2017
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.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!