[Master Index]
[Index for /tools/hpmatlab/toolbox/signal]
sawtooth
(/tools/hpmatlab/toolbox/signal/sawtooth.m)
Function Synopsis
y = sawtooth(t,width)
Help text
SAWTOOTH Sawtooth and triangle wave generation.
SAWTOOTH(T) generates a sawtooth wave with period 2*pi for the
elements of time vector T. SAWTOOTH(T) is like SIN(T), only
it creates a sawtooth wave with peaks of +1 to -1 instead of
a sine wave.
SAWTOOTH(T,WIDTH) generates a modified triangle wave where WIDTH, a
scalar parameter between 0 and 1, determines the fraction between 0
and 2*pi at which the maximum occurs. The function increases from -1
to 1 on the interval 0 to WIDTH*2*pi, then decreases linearly from 1
back to -1 on the interval WIDTH*2*pi to 2*pi. Thus WIDTH = .5 gives
you a triangle wave, symmetric about time instant pi with peak amplitude
of one. SAWTOOH(T,1) is equivalent to SAWTOOTH(T).
Caution: this function is inaccurate for huge numerical inputs
See also SQUARE, SIN, COS
Cross-Reference Information
This function calls
- end /tools/hpmatlab/toolbox/matlab/lang/end.m
- error /tools/hpmatlab/toolbox/matlab/lang/error.m
- find /tools/hpmatlab/toolbox/matlab/ops/find.m
- if /tools/hpmatlab/toolbox/matlab/lang/if.m
- length /tools/hpmatlab/toolbox/matlab/general/length.m
- nargin /tools/hpmatlab/toolbox/matlab/elmat/nargin.m
- pi /tools/hpmatlab/toolbox/matlab/elmat/pi.m
- rem /tools/hpmatlab/toolbox/matlab/elfun/rem.m
- size /tools/hpmatlab/toolbox/matlab/general/size.m
- zeros /tools/hpmatlab/toolbox/matlab/elmat/zeros.m
This function is called by
- moddemo /tools/hpmatlab/toolbox/signal/moddemo.m
Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON