CONTROL SYSTEM Reprot 002
CONTROL SYSTEM Reprot 002
LAB REPORT # 02
SUBMITTED TO:
MAM ZAINAB
A P C
TOTAL MARKS 6 3 1
OBTAINED MARKS
Example 1:
Consider a first-order transfer function G (s )=1/s+1. The impulse response
function can be created by using following commands in script file. % impulse
response
MATLAB:
clf
num = [1];
den = [1 1];
impulse (num,den);
grid;
printsys(num,den,'s');
output:
Problems:
Transfer functions:
Observe the step response of the below five transfer function and draw conclusions.
Solution: 1)
Simulink model:
Output:
step response
4
3
Amplitude
0
0 2 4 6 8 10
Time
Comment: This is the step response of the given transfer function which shows
the time behaviour of the output of the system.
Simulink model:
Output:
4
x 10 y(n)= step response
4.5
4
step response
3.5
3
Amplitude
2.5
1.5
0.5
0
0 2 4 6 8 10
Time
Comment: This is the step response of the given transfer function which shows
the time behaviour of the output of the system.
Simulink model:
step response
1.5
Amplitude
0.5
0
0 2 4 6 8 10
Time
Comment: This is the step response of the given transfer function which shows
the time behaviour of the output of the system.
Simulink model:
Output:
step response
0.5
0
Amplitude
-0.5
-1
-1.5
-2
0 2 4 6 8 10
Time
Comment: This is the step response of the given transfer function which shows
the time behaviour of the output of the system.
Simulink model:
Output:
-2000
step response
Amplitude
-4000
-6000
-8000
-10000
0 2 4 6 8 10
Time
Comments: In Script file we give impulse at input so our output is related for
an instant. But in Simulink we give step response at input which shows the
output stable after a short interval of time
SIMULINK Implementation:
Output:
Output :
Comment: In 1st case graph of differential equation starts from 1 and then
stabilized about0. While in 2nd case, graph of differential equation starts from 0
and then stabilized about 1.