function plotsine50() % plot a sine wave of 50Hz time = 0:0.0001:0.2; sine = sin(2*pi*50.0*time); plot(1000.0*time, sine); xlabel('Time [ms]'); ylim([-1.2 1.2]); ylabel('Sinewave'); end