help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave Control Toolbox: How to find the step response of a given sta


From: Zdeněk Hurák
Subject: Re: Octave Control Toolbox: How to find the step response of a given state signal?
Date: Thu, 09 Apr 2009 20:25:08 +0200
User-agent: KNode/0.10.9

Roque Iozzo wrote:

> How to find the step response of a given state signal?
> 
> The 'step' function produces a plot or the step response data for a system
> (i.e. y_1), but how can I plot the response of a state signal (i.e. x_1 or
> x_2)?

Just place C equal to identity matrix, then y = x. You will have to adjust D
accordingly:

A=[-1 -0.5;1 0];
B=[0.5;0];
C=[1 0];
D=0;
S=ss(A,B,C,D);
step(S)


Sx=ss(A,B,eye(2),[0;0]);
step(Sx)


-- 
Zdenek Hurak, Czech Technical University in Prague




reply via email to

[Prev in Thread] Current Thread [Next in Thread]