f_turn.m

来自「kalman滤波」· M 代码 · 共 42 行

M
42
字号
%% A coordinated turn model for extended IMM filter demonstration%% % Copyright (C) 2007 Jouni Hartikainen%% This software is distributed under the GNU General Public% Licence (version 2 or later); please refer to the file% Licence.txt, included with the software, for details.function x_k = f_turn(x,param)        dt = param{1};    w = x(5);    if w == 0        coswt = cos(w*dt);        coswto = cos(w*dt)-1;        coswtopw = 0;                  sinwt = sin(w*dt);        sinwtpw = dt;    else        coswt = cos(w*dt);        coswto = cos(w*dt)-1;        coswtopw = coswto/w;                  sinwt = sin(w*dt);        sinwtpw = sinwt/w;    end            F = [1 0 sinwtpw    coswtopw  0;...         0 1 -coswtopw  sinwtpw   0;...         0 0 coswt      -sinwt    0;...         0 0 sinwt      coswt     0;...         0 0 0          0         1];    x_k = F*x;                    

⌨️ 快捷键说明

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