Setting initial condition of State Space model (not block in Simulink)

2 ビュー (過去 30 日間)
J AI
J AI 2021 年 4 月 22 日
コメント済み: J AI 2021 年 4 月 23 日
I know how to set initial conditions of a state space model when using the state-space block in Simulink. However, how is it done using the "ss" command?
e.g. given A, B, C and D, how can I set the initial condition x0 using the "ss" command?
G = ss(A,B,C,D,x0) % not the correct code but just to give an idea of what I am trying to achieve
The "lsim" command does change the initial condition but I just want to set the initial condition without simulating the system.
Thanks for your time in advance.

採用された回答

Paul
Paul 2021 年 4 月 23 日
編集済み: Paul 2021 年 4 月 23 日
I'm almost certain that the initial conditions are not a settable (is that a word?) property of ss objects. The initial conditions have to be provided to functions that use them.
  1 件のコメント
J AI
J AI 2021 年 4 月 23 日
Yes, that's what it feels like. I will wait for a while to see if someone has to add anything. Thanks for your input though!

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

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by