1 function v=gradw(obj,varargin)
\r
2 % Evaluates the gradient object at time t, with respect to w.
\r
4 % Syntax: (* = optional)
\r
6 % v = gradw(obj, x, t, w, u);
\r
11 % The xhandle object containing the gradient.
\r
12 % Must be generated by a call to the 'initgradw' method before use.
\r
14 % A column vector or a scalar containing x(t).
\r
16 % A scalar containing the time t.
\r
18 % A column vector or scalar containing u(t).
\r
20 % A column vector or scalar containing w(t)
\r
25 % A matrix containing the gradient at time t.
\r
27 % Toolbox for nonlinear filtering.
\r
28 % Copyright (C) 2005 Jakob Rosén <jakob.rosen@gmail.com>
\r
30 % This program is free software; you can redistribute it and/or
\r
31 % modify it under the terms of the GNU General Public License
\r
32 % as published by the Free Software Foundation; either version 2
\r
33 % of the License, or (at your option) any later version.
\r
35 % This program is distributed in the hope that it will be useful,
\r
36 % but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
37 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
38 % GNU General Public License for more details.
\r
40 % You should have received a copy of the GNU General Public License
\r
41 % along with this program; if not, write to the Free Software
\r
42 % Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
\r
46 error('Can not evaluate an empty expression!');
\r
48 v=feval(expr,varargin{:});
\r