Plotting Stem Plots with animatedline

Réponses (1)

KSSV
KSSV le 14 Oct 2022
x = linspace(0,4*pi,1000);
y = sin(x);
for i = 1:length(x)
stem(x(1:i),y(1:i))
axis([min(x) max(x) min(y) max(y)])
drawnow
end

Catégories

En savoir plus sur Animation dans Centre d'aide et File Exchange

Produits

Version

R2022b

Question posée :

le 14 Oct 2022

Réponse apportée :

le 14 Oct 2022

Community Treasure Hunt

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

Start Hunting!

Translated by