How to draw the direction field of van der pol oscillator?

前提是你 提交于 2019-12-08 15:22:31

You need to calculate the vector field at every point you want an arrow to be shown. And then you plot this with quiver. For example.

[Xs,Ys]=meshgrid(-5:5,-5:5); % Will define the positions where we want to plot

Us=Ys; % From your equations, these are the values of the field at each point
Vs=mu*(1-Xs.^2).*Ys-Xs;

quiver(Xs,Ys,Us,Vs) % Should plot the field you want, just add the trajectory on top
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!