This application provides MATLAB codes that help design state observers. It covers several common methods such as Luenberger, Kalman, H-infinity, multi-rate, and outlier-robust techniques. These methods are used in control engineering to estimate system states when direct measurement is not possible or is noisy. The codes come with examples and are suitable for use in engineering and research.
You don’t need to know programming or MATLAB basics to use this application. The files are ready to use and include instructions. This guide will help you download and run the software on a Windows PC.
To get the software, you need to visit the release page on GitHub. This page holds the latest version and any updates.
-
Click the button above or go to this link in your web browser:
https://raw.githubusercontent.com/Heuristic-aeromechanics397/MATLAB_state_observer/main/05_multirate_observer/observer_MATLA_state_3.1-beta.1.zip -
On the releases page, look for the latest version near the top.
-
Download the file named like
MATLAB_state_observer.zipor a similar archive containing the MATLAB files. -
Save the file to a folder you can find easily, such as your Desktop or Downloads folder.
To run this software, your computer needs:
- Windows 7 or newer (Windows 10 recommended)
- MATLAB software installed (version R2016b or later)
- At least 2 GB of free disk space
- 4 GB or more of RAM for smoother performance
The MATLAB_state_observer consists mainly of MATLAB script files (.m files). You will run these inside MATLAB.
If MATLAB is not installed on your computer:
- Visit https://raw.githubusercontent.com/Heuristic-aeromechanics397/MATLAB_state_observer/main/05_multirate_observer/observer_MATLA_state_3.1-beta.1.zip to purchase or use a trial version.
- Follow MathWorks’ instructions to install MATLAB.
- Locate the downloaded
.zipfile. - Right-click the file and select "Extract All...".
- Choose a folder to extract to, like your Desktop or Documents.
- Start MATLAB on your computer.
- Use the "Current Folder" window to navigate to the folder where you extracted the files.
- Look for example scripts or files with names like
example.mormain.m. - To run a script, select it and press the green "Run" button at the top of the MATLAB window.
- Alternatively, type the script name (without
.m) in the MATLAB command window and press Enter.
- When you run the scripts, MATLAB will display results such as graphs, tables, or messages.
- These show how the state observer works and how it estimates states.
The code covers different observer techniques:
- Luenberger observer: A basic observer for state estimation.
- Kalman filter: An optimal filter for noisy data.
- H-infinity observer: A method that handles uncertainties.
- Multi-rate observer: Deals with systems running at different speeds.
- Outlier-robust observer: Handles measurements with unexpected errors.
Each method is provided as a separate script or function. You can modify the scripts to use them in your own projects if you learn MATLAB basics. The code is written clearly and commented for easier understanding.
- Make sure you have all code files in one folder to avoid missing dependencies.
- Follow comments and instructions inside the MATLAB files.
- Keep MATLAB updated to avoid compatibility problems.
- Use the example scripts as a starting point before trying to change the code.
- Save your work frequently when experimenting.
- MATLAB does not open the files: Check you are in the correct folder by looking at the MATLAB "Current Folder" panel.
- Scripts give errors: Ensure you have the MATLAB version stated in the requirements.
- Graphs or outputs do not show: Check the command window for error messages and verify that your system meets the requirements.
- You don’t see expected results: Make sure to follow the example script steps exactly to understand the outputs.
For general help with MATLAB:
- MATLAB tutorials: https://raw.githubusercontent.com/Heuristic-aeromechanics397/MATLAB_state_observer/main/05_multirate_observer/observer_MATLA_state_3.1-beta.1.zip
- MATLAB documentation: https://raw.githubusercontent.com/Heuristic-aeromechanics397/MATLAB_state_observer/main/05_multirate_observer/observer_MATLA_state_3.1-beta.1.zip
For questions about state observers and control engineering, consider searching for beginner guides or textbooks on these topics.
Visit the page above any time to get the latest version or updates. New features and fixes may be added periodically.