1 function obj=initgradx(obj)
\r
2 % Intializes the gradient with respect to x. Used by, for instance, the EKF filter.
\r
3 % The result is found in the 'gradx' property.
\r
5 % Syntax: (* = optional)
\r
7 % obj = initgradx(obj);
\r
12 % Data object to be differentiated.
\r
20 % Toolbox for nonlinear filtering.
\r
21 % Copyright (C) 2005 Jakob Rosén <jakob.rosen@gmail.com>
\r
23 % This program is free software; you can redistribute it and/or
\r
24 % modify it under the terms of the GNU General Public License
\r
25 % as published by the Free Software Foundation; either version 2
\r
26 % of the License, or (at your option) any later version.
\r
28 % This program is distributed in the hope that it will be useful,
\r
29 % but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
30 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
31 % GNU General Public License for more details.
\r
33 % You should have received a copy of the GNU General Public License
\r
34 % along with this program; if not, write to the Free Software
\r
35 % Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
\r
37 [obj.gradx_idxstart, obj.gradx_idxlength]=initgrad(obj,1); % 1 means 'x'
\r