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

조회 수: 3 (최근 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 CenterFile Exchange에서 Get Started with Control System Toolbox에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by