sawtooth
Sawtooth or triangle waveform.
📝Syntax
Y = sawtooth(T)
Y = sawtooth(T, width)
📥Input Arguments
Parameter Description
T time values in radians.
width fraction of period spent rising.
📤Output Arguments
Parameter Description
Y waveform values.
📄Description

sawtooth generates a periodic ramp between -1 and 1.

💡Examples
y = sawtooth(0:0.1:2*pi);
🔗See Also
square
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub