File Exchange

image thumbnail

Example of a State Observer of a State Space System in Simulink

version 1.0 (21.6 KB) by Lazaros Moysis
An example of an observer design for an observable state space system.

68 Downloads

Updated 05 Jul 2016

View License

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].
References:
[1] An introduction to Control Theory Applications Using Matlab, https://www.researchgate.net/publication/281374146_An_Introduction_to_Control_Theory_Applications_with_Matlab
References:
[2] K. Ogata. Modern Control Engineering 5th ed. 2009. Prentice Hall.

Cite As

Lazaros Moysis (2021). Example of a State Observer of a State Space System in Simulink (https://www.mathworks.com/matlabcentral/fileexchange/50829-example-of-a-state-observer-of-a-state-space-system-in-simulink), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (10)

Dubblin

Fernando Zigunov

milad abbasi

mahdi foroughi

zabuk davuk

Thank you so much! I am going to have extra points for my midterm exam.

Carstea Ciprian

Mateus C. Lucena

goood

Wu Bosheng

good

mohamed meridjet

thanks

Zahra Mirbagheri

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!