matlab 生成三角波

t=[-1:2/(2^12):1];
x=63*sawtooth(pi*(t+0.5),0.5)+64;
plot(t,x)

  

原文地址:https://www.cnblogs.com/xiongqiangcs/p/3099958.html