# How insert initial condition in state-space equations in Matlab

#### Yas Rezaei

Joined Oct 9, 2017
4
Hi,

I have a system like sys=ss(A,B,C,D)
I want to put a initial condition in my sys and then plot step response.
How can it be?
please not that I would not get initial condition responce by this command initial(sys,x0)
I want to get step response, but before that I want to insert a initial condition like this x0=[1 2]

Thanks

Yas