kalm — Kalman update
[x1,p1,x,p]=kalm(y,x0,p0,f,g,h,q,r)
current system matrices
covariance matrices of dynamics and observation noise
state estimate and error variance at t=0 based on data up to t=-1
current observation Output from the function is:
updated estimate and error covariance at t=1 based on data up to t=0
updated estimate and error covariance at t=0 based on data up to t=0