exp2_6.m

来自「matlab6.0数学手册、matlab语言与控制系统仿真 。帮助你学习并更方便」· 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 + -
显示快捷键?