source: projects/ckbs/trunk/test/nonlinear_ok_simple_g.m @ 95

Last change on this file since 95 was 35, checked in by bradbell, 11 years ago

Revmove reference to gpl2.txt and further shorten copyright and license statement

File size: 795 bytes
Line 
1% -------------------------------------------------------------------
2% ckbs: Constrained Kalman-Bucy Smoother Program: Copyright (C) 2006
3% Authors: Bradlely Bell:        bradbell at washington dot edu
4%          Gianluigi Pillonetto: giapi at dei dot unipd dot it
5% License: GNU General Public License Version 2
6% -------------------------------------------------------------------
7% $begin nonlinear_ok_simple_g.m$$ $newlinech %$$
8%
9% $spell
10%       ckbs
11%       gk
12%       xk
13%       dt
14% $$
15%
16% $section Example Transition Function: nonlinear_ok_simple_g$$
17%
18% $head Source Code$$
19% $newlinech $$ $codep
20function [gk, Gk] = nonlinear_ok_simple_g(k, xk1)
21        n  = size(xk1, 1);
22        if k == 1
23                Gk = zeros(n, n);
24                gk = Gk * xk1 + 1;
25        else
26                Gk = eye(n);
27                gk = Gk * xk1 + 1;
28        end
29        return
30end
31% $$ $newlinech %$$
32% $end
Note: See TracBrowser for help on using the repository browser.