Example of State Space Observer

Example of a state space observer in simulink
147 Descargas
Actualizado 18 nov 2025

Ver licencia

This example simulates a simple 2-dimensional state space system. For this system, we construct an observer that starts from different initial values for the states, but manages after a short period to observe the statees of the system (i.e. the error between real and simulated state goes to zero).
The user may try different initial values for the plant and the observer or different inputs (step, ramp, sinusoid). The observer always manages to minimize the error!
Additionally, the user may try a different output feedback matrix L. For example, if we choose the poles of the observer to be near the imaginary axis, then the observation will take longer time to "reach" the actual states of the plant (i.e. ti will take longer time for the error to be eliminated).
This is included in [1].
Course on Automatic Control:
References:
See also the video discussing this topic for descriptor systems, which are a more general family:
References:
[2] K. Ogata. Modern Control Engineering 5th ed. 2009. Prentice Hall.

Citar como

Lazaros Moysis (2026). Example of State Space Observer (https://la.mathworks.com/matlabcentral/fileexchange/155517-example-of-state-space-observer), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2023b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Versión Publicado Notas de la versión
1.0.4

Added video links for the observer design

1.0.3

added video links

1.0.2

edited the description

1.0.1

added video links

1.0.0