0% found this document useful (0 votes)
69 views2 pages

Exp 2control System Performance Analysis Using Matlab Control System Tool Box.

The document describes a MATLAB simulation of a closed-loop control system. It includes: (1) The block diagram of a single-loop unity feedback system; (2) Instructions to develop an M-file to determine the closed-loop transfer function and plot the impulse, step, and ramp responses; (3) The M-file code developed to model the system and generate the plots.

Uploaded by

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

Exp 2control System Performance Analysis Using Matlab Control System Tool Box.

The document describes a MATLAB simulation of a closed-loop control system. It includes: (1) The block diagram of a single-loop unity feedback system; (2) Instructions to develop an M-file to determine the closed-loop transfer function and plot the impulse, step, and ramp responses; (3) The M-file code developed to model the system and generate the plots.

Uploaded by

Hardik Agravatt
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Indian Institute of Technology Gandhinagar

Department of Electrical Engineering


EE 402 Control System Lab.

B. Tech.: Electrical, Sem. : VII

SAMPLE PROBLEM
PROBLEM SET 1.1: MATLAB BASED TUTORIALS: MODELING/ANALYSIS OF LINEAR
SYSTEMS.
Problem: 1:Consider

the

closed-loop

system

in

figure.

Develop

ab

m-file

accomplish the following tasks.

(a) Determine the closed-loop transfer function T(s) = Y(s)/R(s)


(b)Plot the closed-loop system response to an impulse input R(s)
= 1, a unit step input R(s) = 1/s, and a unit ramp input R(s) =
1/s2. Use the subplot function to display the three system
responses.

A single loop unity feedback system

Block Diagram
M file

numg=[1]; deng=[1 2 0]; sysg = tf(numg,deng);

numc=[0.5 2]; denc=[1 0]; sysc = tf(numc,denc);


syss=series(sysg,sysc);
sys = feedback(syss,1)
t=[0:0.1:20];
subplot(311)
impulse(sys,t);
subplot(312)
step(sys,t);
subplot(313)
u=t; % Unit ramp input
lsim(sys,u,t);
Transfer function:
0.5 s + 2
----------------------s^3 + 2 s^2 + 0.5 s + 2

Impulse Response

Amplitude

10
0
-10

Amplitude

10

12

14

16

18

20

14

16

18

20

14

16

18

20

0
-10

10

12

Time (sec)
Linear Simulation Results

40
Amplitude

10

Time (sec)
Step Response

20
0

10
Time (sec)

12

You might also like