reg
Creates a state regulator with specified state-feedback and estimator gains.
Syntax
sysreg = reg(sysin, K, L)
Inputs
- sysin
 - The state space model.
 - K
 - The state feedback gain matrix K.
 - L
 - The estimator gain matrix L.
 
Outputs
- sysreg
 - The dynamic regulator or compensator.
 
Example
A = [-1, 1; -1, 2];
B = [1.5; 2];
C = [2.5, 1];
sysin = ss(A, B, C, 0);
L = [1.0000; 5.0000];
K = [2.5000    0.8750];
sysreg = reg(sysin, K, L)
        sysreg = object [
Scaled: 0
TimeUnit: seconds
ts: 0
a: [Matrix] 2 x 2
 -7.25000  -1.31250
-18.50000  -4.75000
b: [Matrix] 2 x 1
1
5
c: [Matrix] 1 x 2
-2.50000  -0.87500
d: 0
e: [Matrix] 0 x 0
type: StateSpaceModel
]