0% found this document useful (0 votes)
37 views5 pages

CS LAB Experiment-11 PDF

The document describes an experiment using MATLAB to simulate the dynamical system response of a linear input-output model. The program allows the user to input the numerator and denominator of a transfer function. It then plots the step response, calculates characteristics like rise time, peak time, settling time, and percent overshoot. The output shows an example run with the transfer function s^2+5s+100 and displays the calculated response values.

Uploaded by

novio333
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views5 pages

CS LAB Experiment-11 PDF

The document describes an experiment using MATLAB to simulate the dynamical system response of a linear input-output model. The program allows the user to input the numerator and denominator of a transfer function. It then plots the step response, calculates characteristics like rise time, peak time, settling time, and percent overshoot. The output shows an example run with the transfer function s^2+5s+100 and displays the calculated response values.

Uploaded by

novio333
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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