混沌动力学的MATLAB程序实现与心血管系统混沌起源探究
一、动力系统分析的MATLAB程序
在动力系统分析中,我们可以利用MATLAB编写一系列程序来研究相关问题。
1. 三个耦合常微分方程的数值积分
该程序用于对Duffing - Van Der Pol振荡器进行数值积分,使用了MATLAB内置的 ode45 函数。以下是具体代码:
% File: VanDerPolSo1v.m
% Numerical integration of Duffing-Van Der Pol Oscillator.
% Ordinary differential equation solver using in-built
% Matlab function (ode45).
% Uses: VanDerPo1.m
% Set initial conditions for the three differential equations
x0=[1;0;0];
% Set integration time
timePoints=5000:0.3:7500;
% Solve equations
options=odeset('RelTol',1e-10,'AbsTol',1e-12);
[t,x]=ode45('VanDerPol',timePoints,x0);
function xp=VanDerPol(t,x)
% Duffing-Van Der Pol equations expressed as a first order system
% (see equations 3-5).
超级会员免费看
订阅专栏 解锁全文
15

被折叠的 条评论
为什么被折叠?



