estim
Function File: est = estim (sys, l)
Function File: est = estim (sys, l, sensors, known)
Function File: est = estim (sys, l, sensors, known, type)
Return state estimator for a given estimator gain.
Inputs
Outputs
Block Diagram
u +-------+ ^
+---------------------------->| |-------> y
| +-------+ + y | est | ^
u ----+--->| |----->(+)------>| |-------> x
| sys | ^ + +-------+
w -------->| | |
+-------+ | v
|
Remarks
The argument type is for discrete-time systems only. If set to ’current’, the follwong prediction-correction scheme is used:
^ ^
x*(k+1) = A x(k) + B u(k)
^ ^ -1
x(k) = x*(k) + A L (y(k) - C x*(k) - D u(k))
|
The inverse fo the system matrix in the above equations is required for maintaining the desired observer error dynamics given by (A - LC).
The advantage of this structure is that the current measurement y(k) is used for the current estiamted state and not for the next allowing the estimator to react to system disturbances faster. L is the observer feedback matrix for the common observer structure with the matrix (A - LC) being asymptotically stable, i.e. has eigenvalues strictly within the unit circle.
Source Code: estim