how to get the state-space representation from the SimMechanic model?

58 ビュー (過去 30 日間)
qiqi wu
qiqi wu 2017 年 4 月 12 日
回答済み: Sergey Kasyanov 2022 年 9 月 16 日
Physical model is built with SimMechanics, but if try to control it such as LQR method, need to know the state equation of the model, so as to calculate the control rate. However if the equations are derived by hand can directly with the simple Simulink block to simulation. Use this procedure I feel that there is no need to bother to build a physical model of SimMechanics.So I think that there must have a better way to get the state-space representation from the SimMechanic model.I'm a learner of SimMechanicas,and I encounter this problem.It would be better if you could give me some simple examples.Thanks。

回答 (2 件)

Fei Deng
Fei Deng 2017 年 4 月 17 日
You can linearize a simscape model and get the state space representation. Take a look of the example in help documentation showing how to linearize a hydraulic plant model to support control system stability analysis and design. http://www.mathworks.com/help/physmod/simscape/ug/linearize-a-plant-model-for-use-in-feedback-control-design.html
  1 件のコメント
Friedrich Wegmann
Friedrich Wegmann 2022 年 1 月 13 日
But is there a way to directly get the system matrices A,B,C,D?

サインインしてコメントする。


Sergey Kasyanov
Sergey Kasyanov 2022 年 9 月 16 日
Hello!
Try to use linmode.

カテゴリ

Help Center および File ExchangeAssembly についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by