Function File: y = sawtooth (t)
Function File: y = sawtooth (t, width)

Generates a sawtooth wave of period 2 * pi with limits +1/-1 for the elements of t.

width is a real number between 0 and 1 which specifies the point between 0 and 2 * pi where the maximum is. The function increases linearly from -1 to 1 in [0, 2 * pi * width] interval, and decreases linearly from 1 to -1 in the interval [2 * pi * width, 2 * pi].

If width is 0.5, the function generates a standard triangular wave.

If width is not specified, it takes a value of 1, which is a standard sawtooth function.

Package: signal