subplot.m

来自「codes for matlab software」· M 代码 · 共 18 行

M
18
字号
clc,clear,clf,close all
t=0:10;
a=10;T=3;w=2*pi/T;thita=0;
Vs=a*sin(w*t+thita);
Ve=0.9.^t;
Vc=0.7.^t.*sin(w*t+thita);
subplot(3,1,1);plot(t,Vs,'r')
xlabel('time[mS]')
ylabel('Voltage [v]')
title('sinosudal')
subplot(3,1,2);plot(t,Ve)
xlabel('time [mS]')
ylabel('Voltage [v]')
title('exponential')
subplot(3,1,3);plot(t,Vc,'g')
xlabel('time [mS]')
ylabel('Voltage [v]')
title('casual') 

⌨️ 快捷键说明

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