Está en la página 1de 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

También podría gustarte