exp2_6.m

来自「共五章matlab实现计算机辅助设计与仿真技术的ppt讲义。还有每一讲中所有的m」· M 代码 · 共 37 行

M
37
字号
%图形分割命令的使用
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])
xlabel('t(deg)')
ylabel('magnitude')
grid on
title('sin(t)')
subplot(322)
plot(t,-sin(t))
axis([0 16 -1.5 1.5])
xlabel('t(deg)')
ylabel('magnitude')
grid on
title('-sin(t)')
subplot(323)
plot(t,cos(t))
axis([0 16 -1.5 1.5])
xlabel('t(deg)')
ylabel('magnitude')
grid on
title('cos(t)')
subplot(324)
plot(t,-cos(t))
axis([0 16 -1.5 1.5])
xlabel('t(deg)')
ylabel('magnitude')
grid on
title('-cos(t)')
subplot(325)
subplot(326)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?