sawtooth 函数
generates a sawtooth wave with period 2π for the elements of the time array
x
= sawtooth(t
)t
.sawtooth
is similar to the sine function but creates a sawtooth wave with peaks of –1 and 1. The sawtooth wave is defined to be –1 at multiples of 2π and to increase linearly with time with a slope of 1/π at all other times.
generates a modified triangle wave with the maximum location at each period controlled by
x
= sawtooth(t
,xmax
)xmax
.
上面两种形式是MATLAB官方的帮助文档给出的,但这并不是我今天想呈现给大家的,我想通过基本的解释,之后通过案例的对比来感受这个函