examp3_30.m
来自「matlab的大量实例代码」· M 代码 · 共 15 行
M
15 行
h_opt=odeset; x0=[-0.2; -0.7]; t_final=20;
mu=1; [t1,y1]=ode45('vdp_eq',[0,t_final],x0,h_opt,mu);
mu=2; [t2,y2]=ode45('vdp_eq',[0,t_final],x0,h_opt,mu);
plot(t1,y1,t2,y2,':')
figure; plot(y1(:,1),y1(:,2),y2(:,1),y2(:,2),':')
h_opt=odeset; x0=[-0.2; -0.7]; t_final=20;
mu=1; [t1,y1]=ode45(@vdp_eq1,[0,t_final],x0,h_opt,mu);
mu=2; [t2,y2]=ode45(@vdp_eq1,[0,t_final],x0,h_opt,mu);
plot(y1(:,1),y1(:,2),y2(:,1),y2(:,2),':')
h_opt=odeset; x0=[2;0]; t_final=3000;
mu=1000; [t,y]=ode45(@vdp_eq1,[0,t_final],x0,h_opt,mu);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?