How can I put a display that shows changing variables in a plot?
14 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I wanted to know if I could put a display that shows me a number that changes in a plot.
1 commentaire
Réponses (2)
Aquatris
le 5 Déc 2019
Assuming you plot in a for loop and the changing variable is x, below code will update the title of the plot to be equal to x
for i = 1:length(x)
plot(t,x(i))
title(x(i))
pause(0.001)
end
0 commentaires
Voir également
Catégories
En savoir plus sur 2-D and 3-D 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!