Skip to content

Instantly share code, notes, and snippets.

@niladridas
Created June 20, 2018 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niladridas/91a054d0a8f8b9511129ab5a047cc437 to your computer and use it in GitHub Desktop.
Save niladridas/91a054d0a8f8b9511129ab5a047cc437 to your computer and use it in GitHub Desktop.
# Take a covariance matrix nxn
P = [2 1 1; 1 3 1;1 1 5]
C = eye(3,3)
R = [1 0 0; 0 2 0;0 0 300000]
K = P*C'*inv(C*P*C'+R)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment