Watch this Author's files
Congratulations. This is the first EKF library I manged to get working at all.
The example takes measurements go in the s matrix, not the x. Now that is fixed everything is good.
It is a long time since I did Kalman or Matlab. You clever guys underestimate how dumb you need to make your comments to get us newbies started.