How can I determine the mapping of the states in a Simulink model with the states in the linearized state space representation of the model?
20 views (last 30 days)
Show older comments
I have a model that I linearize using the LINMOD function to get its state space representation. However, I am unable to relate the resulting state matrix with the states of the system. In other words, if I compute the eigenvectors of the state matrix A, I do not know how to associate the different elements of the eigenvector to the states in the actual system.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
You can use the attached function "getstatenames.m" file to obtain the names of the states in the same order as they are ordered in the resulting linearized state space representation. The "getstatenames" function uses the built-in GET_PARAM function to get the state names. The attached example file "example1.m" illustrates the use of the "getstatenames" function. The example script file "example1.m" will show the following:
1. How to query the Simulink state definition
2. Leveraging the Simulink state definition to map to your own
3. Aligning state definition with eigenvector elements
0 Comments
More Answers (0)
See Also
Categories
Find more on Trimming and Linearization in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!