Hi!
I'm trying to plot a moving graph, using the "drawnow" function. Nevertheless, I am wondering whether it is possible to control the plotting pace.
I'm using "pause" function, but there also are instabilities. Is there an alternative to avoid them?
Furthermore, I'd like to know if there's a way to stop the plotting process (besides from the pause button).
My code is:
clearclccloset3=linspace(0, 500, 2000);x2=linspace(0, 10, 100);%for n=1:leng
for i=1:length(t3)y2=3*sin(0.5*x2-0.1*t3(i)-0.3);plot(x2, y2)%xlabel('x(m)','FontSize',15)
%ylabel('y(t, x) (m)','FontSize',15)
drawnowpause(0.01)end
Thank you!!
Best Answer