[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
This function is called by

Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON