Lab 13
Lab 13
Lab 13
:13
To Plot the Frequency Response (Magnitude and Phase response) of system transfer
function.
Lab. Objective:
To know about magnitude and phase response and plot these in Matlab for different systems transfer
functions.
Theory:
Frequency Response:
Frequency response represent the change in output of a system w,r,t input for every frequency value.
Magnitude Response:
magnitude response represent the increase/ decrease in output of the system w,r,t every frequency value.
Phase Response:
response represent the change in phase of input sinusoids w,r,t every frequency.
Matlab Code:
title('magnitude and phase responce of system')%Matlab built-inn command for title on the graph
-20
-40
-60
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Normalized Frequency ( rad/sample)
180
160
Phase (degrees)
140
120
100
80
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Normalized Frequency ( rad/sample)
Matlab Code:
title('magnitude and phase responce of system')%Matlab built-inn command for title on the graph
-10
-20
-30
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Normalized Frequency ( rad/sample)
150
Phase (degrees)
100
50
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Normalized Frequency ( rad/sample)
Matlab Code:
title('magnitude and phase responce of system')%Matlab built-inn command for title on the graph
-10
-20
-30
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Normalized Frequency ( rad/sample)
400
300
Phase (degrees)
200
100
-100
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Normalized Frequency ( rad/sample)
Lab. Assignment:
Laplace and Inverse Laplace Transform of Time domain and Frequency domain sequences
Given Sequence:
H(t)=e-at+(1-e3t)-(3+e-3t)+e5t
Matlab Work
pretty(ans) % Matlab built inn command for writing the expression in mathematical form
h=
exp(-t)-2-exp(3*t)-exp(-3*t)+exp(5*t)
F=
1/(1+s)-2/s-1/(s-3)-1/(s+3)+1/(s-5)
ans =
-2*(s^4-6*s^3-10*s^2+18*s+45)/(1+s)/s/(s-5)/(s^2-9)
s4 - 6 s3 - 10 s 2 + 18 s + 45
-2 -----------------------------
(1 + s) s (s - 5) (s 2 - 9)
pretty(F2) % Matlab built inn command for writing the expression in mathematical form
F1 =
dirac(t)+3*exp(t)
F1 =
dirac(t)+3*exp(t)
ans =
dirac(t)+3*exp(t)
F1 =
dirac(t)+3*exp(t)
F2 =