I would like to animate a self updating plot on matlab. For example a string vibrating between two ends. All the basic animate functions I have found in the documentation accomp
What about this:
h = animatedline; axis([0,4*pi,-1,1]); x = linspace(0,4*pi,1000); for k = 1:0.01:10 y = sin(k*x); clearpoints(h); addpoints(h,x,y); drawnow end