vdpol.m

来自「比较实用的Matlab介绍」· M 代码 · 共 14 行

M
14
字号
function yprime=vdpol(t,y);%VDPOL(t,y) returns the state derivatives of the Van der Pol equation:%%	x'' - mu*(1-x^2)*x' + x = 0    (' = d/dx, '' = d^2/dx^2)%%	let y(1) = x   and y(2) = x'%%	then  y(1)' = y(2)%         y(2)' = mu*(1-y(1)^2)*y(2) -y(1)global MUyprime=[y(2);MU*(1-y(1)^2)*y(2)-y(1)]; % output must be a column

⌨️ 快捷键说明

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