You are on page 1of 1

Graph of Step Response (MATLAB) Commands

G(s) =

2s + 3
s + 5s 2 + 8s + 4
3

num = [ 2 3 ];
den = [ 1 5 8 4 ];
sys = tf ( num, den );
[ y, t ] = step ( sys, 10 );
plot ( t, y )
definitions
1.

num is numerator of transfer function ( 2s + 3 )

2.

den is denominator transfer function ( s3 + 5s2 + 8s + 4 )

3.

sys is transfer function (num/den)

4.

y is numerical step response of sys and final time for simulation is 10

5.

plot generates the step response ( 0 < t < 10 )

6.

for more details, type help step

You might also like