Chapter 7: Fourier Series and Transform
% Velocity = 2, time = 0.03 second per frame, Sine wave x = 0:.03:10; for i=1:.1:10 plot(x, sin(x - 2* i)), pause(0.03), end % Square Wave for i=0:.03:10 plot(x, sign(sin(x - 2* i))), ylim([-2 2]), pause(0.03), end