📜  matlab sqaure wave - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:13.988000             🧑  作者: Mango

代码示例1
t = linspace(-pi,2*pi,121);
x = 1.15*square(2*t);

plot(t/pi,x,'.-',t/pi,1.15*sin(2*t))
xlabel('t / \pi')
grid on