Why are my states out of order when I use FINDOP with LINMOD?

Technical Source
1 min readSep 3, 2021

I use FINDOP to find an equilibrium point of my model. I use the output with LINMOD or DLINMOD, and the system does not behave as expected because the states are out of order.

ANSWER

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

Functions FINDOP and LINEARIZE in Simulink Control Design 3.0 (R2009b) define states in a different order than functions in Simulink (TRIM and LINMOD).

The Simulink Control Design functions are intended to be used together, and the Simulink functions are intended to be used together.

The GETXU and GETSTATESTRUCT commands reorder the states output from FINDOP into the order used by Simulink (including LINMOD and DLINMOD). GETXU puts the states in a vector, and GETSTATESTRUCT puts the states in a structure.

There is no direct method to reorder the states output from TRIM into a form usable by LINEARIZE. As a workaround, one can manually reorder the states.

--

--

Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.