How to extract State-Space Matrices, states, etc. from Simulink model for Simscape subsystem?

23 ビュー (過去 30 日間)
Yousef B Bedoustani
Yousef B Bedoustani 2020 年 3 月 12 日
編集済み: Aabha 2025 年 2 月 7 日 11:02
Is there a function such as ""power_analyze" for Simscape to extract State-Space Matrices, states, etc. from Simscape Simulink model or subsystem?
[A,B,C,D,x0,states,inputs,outputs,uss,xss,yss,frequencies,Hlin] =power_analyze('sys')

回答 (1 件)

Aabha
Aabha 2025 年 2 月 7 日 10:20
編集済み: Aabha 2025 年 2 月 7 日 11:02
I understand that you are looking for a function similar topower_analyze” to extract state-space matrices from a Simscape model.
This can be done using the “Linear Analysis Tool” provided by Simulink Control Design. For instance, the function “linmod” can be used to extract state matrices from a Simscape or Simulink model. The “linmod” function performs a perturbation-based linearization around the model’s initial conditions, or a specialised operating point. You can refer to the function documentation for more details.
The function can be used as follows:
[A, B, C, D] = linmod ('system_name');
You can also specify the operating point around which the model has to be linearised, using additional input arguments.
[A, B, C, D] = linmod ('system_name', x, u);
Here, “x” and “u” represent the state and input vectors respectively.
You can also refer to the “Linearizing Models” documentation in Simulink, for more details.

カテゴリ

Help Center および File ExchangeTrimming and Linearization についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by