freq = 5.0; ampl = 2.0; [time, sine] = sinewave(freq, ampl, 1.5, 0.001); plotsinewave(time, sine);