Member of the waveform generation class.
s = sawtooth(t)
s = sawtooth(t, w)
Generates a sawtooth wave with period 2*pi.
| Name | Description |
| t | Specifies the times at which to plot data for the sawtooth wave. t is a vector. |
| w | Specifies the fraction of the wave period at which the maximum of the sawtooth wave occurs. w is a scalar between 0 and 1. The default is 1. |
| Name | Description |
| s | Returns the sawtooth wave at times t with period 2*pi. s is a vector. |
X = 0:0.01:6*pi;
Y = sawtooth(X, 0.5);
plot(X, Y)