KalmanFilter
mRiccati.m
Go to the documentation of this file.
1 function dXdt = mRiccati(t, X, A, C,R, Q)
2 X = reshape(X, size(A)); %Convert from "n^2"-by-1 to "n"-by-"n"
3 dXdt = X*(A') + A*X - X*(C')*(inv(R))*C*X + Q; %Determine derivative
4 dXdt = dXdt(:); %Convert from "n"-by-"n" to "n^2"-by-1
5 %sourced from https://www.mathworks.com/matlabcentral/answers/305484-how-to-solve-a-riccati-control-differential-equation
function mRiccati(in t, in X, in A, in C, in R, in Q)