📄 exp2_6.m
字号:
%图形分割命令的使用
clear
close all
clc
t=[0:pi/20:5*pi];
figure(1)
subplot(321)
plot(t,sin(t))
axis([0 16 -1.5 1.5])
ylabel('magnitude')
grid on
title('sin(t)')
subplot(322)
plot(t,-sin(t))
axis([0 16 -1.5 1.5])
ylabel('magnitude')
grid on
title('-sin(t)')
subplot(323)
plot(t,cos(t))
axis([0 16 -1.5 1.5])
ylabel('magnitude')
grid on
title('cos(t)')
subplot(324)
plot(t,-cos(t))
axis([0 16 -1.5 1.5])
ylabel('magnitude')
grid on
title('-cos(t)')
subplot(325)
subplot(326)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -