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

📄 bot_d2h_dx2.m

📁 扩展卡尔曼和无迹卡尔曼的matlab仿真比较。
💻 M
字号:
% Hessian of the measurement function in BOT-demo.% 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 dY = bot_d2h_dx2(x,s)  % Space for Hessians. Note that we need a Hessian for  % each dimension in the measurement space, that is we need  % a Hessian for each sensor in this case.       dY = zeros(size(s,2),size(x,1),size(x,1));    % Loop through sensors.  for i=1:size(s,2)    % Derivative twice wrt. x    dx2 = -2*(x(1)-s(1,i)) / ((x(1)-s(1,i))^2+(x(2)-s(2,i))^2)^2;    % Derivative twice wrt. y        dy2 = -2*(x(2)-s(2,i)) / ((x(1)-s(1,i))^2+(x(2)-s(2,i))^2)^2;    % Derivative wrt. x and y    dxdy = ((x(2)-s(2,i))^2-(x(1)-s(1,i))^2) / ((x(1)-s(1,i))^2+(x(2)-s(2,i))^2)^2;    dh = [dx2  dxdy 0 0;...	  dxdy dy2  0 0;...	  0    0    0 0;...          0    0    0 0];    dY(i,:,:) = dh;  end

⌨️ 快捷键说明

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