vdpol_events.m
来自「matlab从入门到精通第6章书后源码对初学者很有帮助」· M 代码 · 共 8 行
M
8 行
% vdpol_events.m
% 响应事件函数
mu=2;
options=odeset('Events',@vdpolevents);
[t,y,te,ye]=ode45(@vdpol,tspan,yo,options,mu);
plot(t,y,te,ye(:,2),'o');
title('Van der Pol resutls for |y(2)=1.5|')
legend('x','dx/dt');
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?