How to update a plot/graph?
Afficher commentaires plus anciens
Hello everybody,
I got a plot like this one:
h = subplot(1,2,1);
plot(0, 0);
axis([-30 40 -20 100 ]);
grid on
Now I am getting a new array of x,y - points every second. How can I update the subplot h with these arrays? It is an n by 2 single array.
Thank you in advance!
Lucca
Réponse acceptée
Plus de réponses (1)
subplot(1,2,1);
plot(x, y);
drawnow
Catégories
En savoir plus sur Graphics Performance dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!