State space initial conditions

조회 수: 19 (최근 30일)
R
R 2011년 9월 23일
Hi
I'm new to this so my question is simple, but I couldn't find it online. Does anybody know how to compute a state space equetion with initial conditions? so for example you have:
A=[1 4; 2 4];
B=[1; 0];
C=[1 0];
D=0;
%then :
sys=ss(A,B,C,D);
t = 0:0.01:10;
u = ones(1,length(t));
lsim(sys,u,t)
but what if x(0)=[0;1]? How do I incorporate this in the equetion?
  댓글 수: 1
Fangjun Jiang
Fangjun Jiang 2011년 9월 23일
Next time, please apply {}code format as you see it now.

댓글을 달려면 로그인하십시오.

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2011년 9월 23일
help lsim or doc lsim
LSIM(SYS,U,T,X0) specifies the initial state vector X0 at time T(1) (for state-space models only). X0 is set to zero when omitted.

카테고리

Help CenterFile Exchange에서 Dynamic System Models에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by