harm
Harmonic Generator
Syntax
y = harm(tz, w, p)
Description
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)
Example
y = harm(5.0, 10*pi, 0.5*pi)