% Plots a 2D animated graph

x = 0:0.05:8;                   
y = sin(x.^2).*exp(-x);

comet(x,y)
grid



