x y plot over a long period of time
12 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Patrick Lydon
le 29 Juin 2017
Réponse apportée : Walter Roberson
le 29 Juin 2017
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
0 commentaires
Réponse acceptée
Walter Roberson
le 29 Juin 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.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Scatter Plots 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!