I have a non-linear system described by a collection of first-order, non-linear difference equations:
x(k) = f(x(k-1)) + u(k-1)
y(k) = h(x(k)) + v(k)
where u(k-1)
and v(k)
are independent, zero-mean Gaussian noise processes with covariances Q
and R
, respectively.
I would like to use the kalman
function in matlab to estimate x
given y
. However, the interface in the matlab control system toolbox is:
[K,L,P]= kalman(sys, Q, R, N)
where sys
is the state-space model. My question is: how do I define sys
for my system of first-order, non-linear difference equations in matlab?