<< kalman | Control System functions | lqed >> |
[L, P, E] = lqe(A, G, C, Q, R, N) |
[L, P, E] = lqe(A, G, C, Q, R) |
State matrix: n x n matrix.
Defines a matrix linking the process noise to the states.
The output matrix, with dimensions (q x n), where q is the number of outputs.
State-cost weighted matrix
Input-cost weighted matrix
Optional cross term matrix: 0 by default.
Kalman gain matrix.
Solution of the Discrete Algebraic Riccati Equation.
Closed-loop pole locations
The function computes the optimal steady-state feedback gain matrix, denoted as L, minimizing a quadratic cost function for a linear discrete state-space system model.
c = 1;
m = 1;
k = 1;
A = [0, 2; -k/m, -c/m];
B = [0; 2/m];
G = [2 0 ; 0 2];
C = [2 0];
Q = [0.02 0; 0 0.02];
R = 0.02;
[l, p, e] = lqe(A, G, C, Q, R)
lqr.
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET