I want to create a video of the animated plot generated by this code:
clcclearclose allbb = importdata('data.txt');xx = bb(:,1);yy = bb(:,2);plot(xx,yy)xlabel('Time (Second)');ylabel('Acceleration (Centimeter/Secon^2)');curve = animatedline('Color', 'r');grid off;for i = 1:length(xx) addpoints(curve,xx(i), yy(i)); drawnow limitrate pause(0.0005)end
Any thoughts on how to do that?
Thank you.
Best Answer