Vous êtes sur la page 1sur 9

Control Systems Lab

LAB# 03
System Response in Simulink & Matlab
a) step response
b) Impulse response

Engr. Fiaz Ahmad.


System Response in Matlab
(Step response)
• Given the system below. Find the step response.
• G(s) = 100/(s2 +4s+50).
• For step response, the input to this system will be a unit step for 8 seconds.
• We first use Matlab to find the this step response
• Matlab code is: -
• Num=100;
• Denum= [1 4 50];
• Sys=tf(num,denum);
• Step(sys);
Step-Response in Simulink

Type in Simulink and press enter.


Go to Source and pick up the Step
Go to Continuous library and pick up the transfer function.
Go to sinks library and pick up the scope.
Connect them up and change the parameters.
Simulate the system and compare the results….

Are the Results Same ..???


System Response in Matlab
(step Response)
• Draw the step responses for the systems given below.
• sys1= 9/(s2+9s+9)
• sys2= 9/(s2+2s+9)
• sys3= 9/(s2+9)
• sys4= 9/(s2+6s+9)
• Response for sys1 to sys4 will be overdamped,
underdamped, undamped and critically damped.
• This is the Topic 4.4 of your book Control system engg.
4th edition By Norman S.Nise page # 183
Example 4.8 Norman S.Nise
Page# 205

T1= 24.542 / (s2+4s+24.542)


T2= 24.542 / (s+10)(s2+4s+24.542)
T3= 73.626 / (s+3)(s2+4s+24.542)

Now we draw the step responses of the


above systems using Simulink and
Matlab.
Example 4.8 page 205

System #1 System # 2
Num1=[24.542]; Num2=[245.42];
Denum1=[1 4 24.542]; P1=[1 10];
T1=tf(num1,denum1) P2=[1 4 24.542];
Denum2=conv(p1,p2)
Step(T1) T2=tf(num2,denum2)
Step(T2)

System #3
Num3=[73.626];
P3=[1 3];
Denum3=conv(p3,p2)
T3=tf(num3,denum3)
Step(T3)
Impulse response

• Matlab Code for finding the Impulse response is given as


under: -
• G=10/(s2+2s+20)
• Num=10;
• Denum= [1 2 20];
• Sys=tf(num,denum);
• T=Impulse(sys);
• Plot(T)
Impulse response using Simulink
Impulse responses
Draw the impulse responses for the systems given
below.
G1= 9/(s2+9s+9)
G2= 9/(s2+2s+9)
G3= 9/(s2+9)
G4= 9/(s2+6s+9)

Response for G1 to G4 will be overdamped, underdamped,


undamped and critically damped.

This is the Topic 4.4 of your book Control system engg.


4th edition
By Norman S.Nise page # 182

Vous aimerez peut-être aussi