You are on page 1of 5

Control Systems Lab

EXPERIMENT NO – 11 LINEAR SYSTEM ANALYSIS USING MATLAB

OBJECTIVE: To write a program and simulate dynamical system of I/O model

RESOURCES: MATLAB Software

Program:

num=input('enter the numerator of transfer function:')

den=input('enter the denominator of transfer function:')

s=tf(num,den)

step(s)

title('the response of second order system is:')

Xlabel('t in secs')

Ylabel('v in volts')

[nt,dt]=tfdata(s,'v')

wn=sqrt(dt(3))

z=dt(2)/(2*wn)

disp('the rise time is:')

tr=pi-(atan^-1(sqrt(1-z^2)/z)/(wn*sqrt(1-z^2)))

disp('the peak time is:')

tp=pi/(wn*sqrt(1-z^2))

Sir CRR College Of Engineering Dept Of EEE


Control Systems Lab

disp('the settling time is:')

ts=4/(z*wn)

disp('the peak over shoot is:')

pos=exp((-z*pi)/sqrt(1-z^2))*100

end

OUTPUT:

enter the numerator of transfer function:100

num =

100

enter the denominator of transfer function:[1 5 100]

den =

1 5 100

Transfer function:

100

---------------

s^2 + 5 s + 100

Sir CRR College Of Engineering Dept Of EEE


Control Systems Lab

nt =

0 0 100

dt =

1 5 100

wn =

10

z=

0.2500

the rise time is:

tr =

2.8238

the peak time is:

Sir CRR College Of Engineering Dept Of EEE


Control Systems Lab

tp =

0.3245

the settling time is:

ts =

1.6000

the peak over shoot is:

pos =

44.4344

Sir CRR College Of Engineering Dept Of EEE


Control Systems Lab

the response of second order system is:


1.5

1
v in volts

0.5

0
0 0.5 1 1.5 2 2.5
t in secs (sec)

RESULT:

Sir CRR College Of Engineering Dept Of EEE

You might also like