📄 shape.m
字号:
t=0:0.01:10;f=0.5;w=2*pi*f;
y=5*cos(w*t)-2*cos(4*w*t-pi*2/3)-1;
y=y/2;
for i=1:1001
if y(i)<=0
y(i)=0;
end
end
subplot(2,2,1);
plot(t,y,'black');
axis([0,10,-2,4]);
y2=cos(w*t-pi/3);
subplot(2,2,2)
plot(t,y2);grid;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -