1 function obj=initgradients(obj)
\r
2 % Initializes the gradients of the data objects f and h.
\r
4 % Syntax: (* = optional)
\r
6 % model = initgradients(model);
\r
16 % Model object with gradients.
\r
18 % Toolbox for nonlinear filtering.
\r
19 % Copyright (C) 2005 Jakob Rosén <jakob.rosen@gmail.com>
\r
21 % This program is free software; you can redistribute it and/or
\r
22 % modify it under the terms of the GNU General Public License
\r
23 % as published by the Free Software Foundation; either version 2
\r
24 % of the License, or (at your option) any later version.
\r
26 % This program is distributed in the hope that it will be useful,
\r
27 % but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
28 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
29 % GNU General Public License for more details.
\r
31 % You should have received a copy of the GNU General Public License
\r
32 % along with this program; if not, write to the Free Software
\r
33 % Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
\r
35 obj.f=initgradx(obj.f);
\r
36 obj.h=initgradx(obj.h);
\r