Harmonic Generator


y = harm(tz, w, p)


Generates a sinusoidal signal with the following properties based on the input arguments:

y = 0                        when T < tx

y = sin(w*(T - tz + p)        when T >= tz

where the input arguments have the following meanings:

tz        delay until start of non-zero signal (in independent variable units)

w        frequency (radian per independent variable units)

p        phase shift (radians)


y = harm(5.0, 10*pi, 0.5*pi)