⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dharmosc.m

📁 Kalman FilteringTheory and Practice using MATLAB,2ndEd.
💻 M
字号:
function xdot = dharmosc(t,x)
%
% Nonlinear dynamic model for damped harmonic oscillator
% with drifing frequency and damping time-constant
%
% INPUTS
%   x is the state vector (4x1)
% OUTPUT
%   xdot is its time-derivative
% Nominal values are 1 Hz with 5 sec time constant
% Frequency autocorrelation time constant of 20 sec.
% Damping autocorrelation time constant of 60 sec.
%
xdot    = zeros(4,1);
xdot(1) = -x(1)/x(3) + x(4)*x(2);
xdot(2) = -x(4)*x(1) - x(2)/x(3);
xdot(3) = (-x(3)+5)/60;
xdot(4) = (-x(4)+2*pi)/20;

⌨️ 快捷键说明

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