フィルターのクリア

Can I adjust the matrix of state-space model during simulation in Simulink?

1 回表示 (過去 30 日間)
Jiazeng Shan
Jiazeng Shan 2011 年 8 月 27 日
I want to change the system matrix during the dynamic simulation within the Simulink. I can do that with following codes using the command "lsim": ..... %%Stage I X1 = lsim(sys_1,u(1:100),t(1:100)); %%Stage II X2 = lsim(sys_2,u(101:end),t(101:end),X1(end,:)); %%X1(end,:) is the last state of Stage I and to be the initial state of Stage II .....
But for convenient, I prefer the simulation to be performed in the Simulink with the block "State-space". How could I to integrate the above two lsims into one Simulink model with some special design and blocks?
Thank you!

採用された回答

Guy Rouleau
Guy Rouleau 2011 年 8 月 27 日
See my answer here:
There is a link to an example for state space format
  1 件のコメント
Jiazeng Shan
Jiazeng Shan 2011 年 8 月 29 日
Hi Guy, the option 4 in your solutions inspires me. Let me try it firstly. Thank you.

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

その他の回答 (0 件)

カテゴリ

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