📄 program2_1b.m
字号:
%MATLAB Program2_1b
x0=[0;0;0];
t0=0;tf=8;tspan=[t0,tf]
[t,x]=ode45('ode_example',tspan,x0);
y=(3333333/10000)*x(:,2)+(666667/10000)*x(:,3)
subplot(1,2,1)
plot(t,x(:,1),'k',t,x(:,2),'-.r',t,x(:,3),':b')
subplot(1,2,2)
plot(t,y,'k')
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -