Signal Toolkit - sawtooth
- Function File:
y =sawtooth(t) - Function File:
y =sawtooth(t, width) Generates a sawtooth wave of period
2 * piwith limits+1/-1for the elements of t.width is a real number between
0and1which specifies the point between0and2 * piwhere the maximum is. The function increases linearly from-1to1in[0, 2 * pi * width]interval, and decreases linearly from1to-1in 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.