Introduction - If you have any usage issues, please Google them yourself
EKF for Kalman filter
function [x,P]=ekf(fstate,x,P,hmeas,z,Q,R)
EKF Extended Kalman Filter for nonlinear dynamic systems
[x, P] = ekf(f,x,P,h,z,Q,R) returns state estimate, x and state covariance, P