SlideShare a Scribd company logo
1 of 7
Download to read offline
Discrete Time Signal Processing Lab
1
Q1. Find the transfer function? Plot poles, zeros on z-plane?
MATLAB code
clc
clear all
close all
%Q1
P1=[1/3; 2; 3]; %poles
Z1=[-1]; %zeros
figure(1);
zplane(Z1, P1) %pole-zero plot command
[num1, den1]=zp2tf(Z1, P1, 1); % get num denum of transfer function
TF1=filt(num1,den1) % gives the transfer function,
Output
Q2. Poles and zeros are given, poles are complex. Plot poles, zeros on zplane. Find Transfer function?
MATLAB code
P2=[0.5j; -0.5j] ; %poles
Z2=[1/4];
figure(2)
zplane(Z2, P2)
[num2, den2]=zp2tf(Z2, P2, 1);
TF2=filt(num2,den2)
Discrete Time Signal Processing Lab
2
Output
The output pole zero plot is shown in figure2 above. And we got Transfer function at command window,
it was..
Q3. Poles and Zeros are given. Zeros are complex values. Plot poles, zeros on z-plane. Find
transfer function?
MATLAB code
P3=[0.65];
Z3=[0.65 + 0.65j; 0.65-0.65j];
figure(3)
zplane(Z3, P3);
[num3, den3]=zp2tf(Z3, P3, 1);
TF3=filt(num3,den3)
Output
Discrete Time Signal Processing Lab
3
MATLAB code
syms a x n
n=(0:120)
a1=0.6;
x1=a1.^n;
stem(n,x1)
a2=-3;
x2=a2.^n;
stem(n,x2)
a3=0.5*exp((pi/4)*j);
x3=a3.^n;
stem(n,x3)
%b part
num4b=[0 1]
denum4b=[1 -0.7]
freqz(num4b,denum4b)
denum4b2=[1 3]
freqz(num4b,denum4b2)
The respective output plots are shown below, mentioned with detailed title.
Discrete Time Signal Processing Lab
4
Discrete Time Signal Processing Lab
5
Part c of this question was much similar to the part b of Q5 while solving, so it is solved once for part b
os Q5. i.e same MATLAB commands are to be implemented.
MATLAB code
%a part
P5=[-1/4; 1/3];
Z5=[-1/3];
figure(5)
zplane(Z5, P5)
Discrete Time Signal Processing Lab
6
Code for part b of Q5 is written below, its output is mentioned with label in
above figures.
%b part
[num5, den5]=zp2tf(Z5, P5, 1)
TF5=filt(num5,den5)
[Z5b,P5b,K] = tf2zp(num5,den5)
roots([ 1.0000; -0.0833; -0.0833])
MATLAB code
b. finding poles and zeros using roots command
code
zeros=roots([2; 2; 2])
poles=roots([2; -3; 1])
output
finding poles and zeros using tf2zp command, output at command window shown
below.
Discrete Time Signal Processing Lab
7
a. Poles zeros plot using zplane command.
MATLAB code
P6=([1.00; 0.500])
Z6=([-0.5000 + 0.8660i; -0.5000 - 0.8660i])
Zplane(Z,P)
Engr. Arif Hussain
COMSATS Abbottabad,
Pakistan.

More Related Content

What's hot

Notes nyquist plot and stability criteria
Notes nyquist plot and stability criteriaNotes nyquist plot and stability criteria
Notes nyquist plot and stability criteria
Aleksandar Micic
 
Lecture 4 ME 176 2 Mathematical Modeling
Lecture 4 ME 176 2 Mathematical ModelingLecture 4 ME 176 2 Mathematical Modeling
Lecture 4 ME 176 2 Mathematical Modeling
Leonides De Ocampo
 
Z-transform and Its Inverse.ppt
Z-transform and Its Inverse.pptZ-transform and Its Inverse.ppt
Z-transform and Its Inverse.ppt
Nahi20
 
Laplace transform: UNIT STEP FUNCTION, SECOND SHIFTING THEOREM, DIRAC DELTA F...
Laplace transform: UNIT STEP FUNCTION, SECOND SHIFTING THEOREM, DIRAC DELTA F...Laplace transform: UNIT STEP FUNCTION, SECOND SHIFTING THEOREM, DIRAC DELTA F...
Laplace transform: UNIT STEP FUNCTION, SECOND SHIFTING THEOREM, DIRAC DELTA F...
saahil kshatriya
 
Discreate time system and z transform
Discreate time system and z transformDiscreate time system and z transform
Discreate time system and z transform
VIKAS KUMAR MANJHI
 

What's hot (20)

Notes nyquist plot and stability criteria
Notes nyquist plot and stability criteriaNotes nyquist plot and stability criteria
Notes nyquist plot and stability criteria
 
Lecture 4 ME 176 2 Mathematical Modeling
Lecture 4 ME 176 2 Mathematical ModelingLecture 4 ME 176 2 Mathematical Modeling
Lecture 4 ME 176 2 Mathematical Modeling
 
Transfer function and mathematical modeling
Transfer  function  and  mathematical  modelingTransfer  function  and  mathematical  modeling
Transfer function and mathematical modeling
 
block diagram reduction solved problems
block diagram reduction solved problemsblock diagram reduction solved problems
block diagram reduction solved problems
 
Design of sampled data control systems part 2. 6th lecture
Design of sampled data control systems part 2.  6th lectureDesign of sampled data control systems part 2.  6th lecture
Design of sampled data control systems part 2. 6th lecture
 
Modern Control - Lec 06 - PID Tuning
Modern Control - Lec 06 - PID TuningModern Control - Lec 06 - PID Tuning
Modern Control - Lec 06 - PID Tuning
 
Z-transform and Its Inverse.ppt
Z-transform and Its Inverse.pptZ-transform and Its Inverse.ppt
Z-transform and Its Inverse.ppt
 
Applications of Z transform
Applications of Z transformApplications of Z transform
Applications of Z transform
 
Time domain analysis
Time domain analysisTime domain analysis
Time domain analysis
 
Control chap5
Control chap5Control chap5
Control chap5
 
Z TRANSFORM PROPERTIES AND INVERSE Z TRANSFORM
Z TRANSFORM PROPERTIES AND INVERSE Z TRANSFORMZ TRANSFORM PROPERTIES AND INVERSE Z TRANSFORM
Z TRANSFORM PROPERTIES AND INVERSE Z TRANSFORM
 
EM3 mini project Laplace Transform
EM3 mini project Laplace TransformEM3 mini project Laplace Transform
EM3 mini project Laplace Transform
 
Laplace transforms
Laplace transformsLaplace transforms
Laplace transforms
 
Laplace transform: UNIT STEP FUNCTION, SECOND SHIFTING THEOREM, DIRAC DELTA F...
Laplace transform: UNIT STEP FUNCTION, SECOND SHIFTING THEOREM, DIRAC DELTA F...Laplace transform: UNIT STEP FUNCTION, SECOND SHIFTING THEOREM, DIRAC DELTA F...
Laplace transform: UNIT STEP FUNCTION, SECOND SHIFTING THEOREM, DIRAC DELTA F...
 
Control chap3
Control chap3Control chap3
Control chap3
 
Circuit Network Analysis - [Chapter5] Transfer function, frequency response, ...
Circuit Network Analysis - [Chapter5] Transfer function, frequency response, ...Circuit Network Analysis - [Chapter5] Transfer function, frequency response, ...
Circuit Network Analysis - [Chapter5] Transfer function, frequency response, ...
 
Chapter 2 laplace transform
Chapter 2 laplace transformChapter 2 laplace transform
Chapter 2 laplace transform
 
Laplace periodic function with graph
Laplace periodic function with graphLaplace periodic function with graph
Laplace periodic function with graph
 
Math*4 Laplace and Inverse laplace transform
Math*4 Laplace and Inverse laplace transformMath*4 Laplace and Inverse laplace transform
Math*4 Laplace and Inverse laplace transform
 
Discreate time system and z transform
Discreate time system and z transformDiscreate time system and z transform
Discreate time system and z transform
 

Viewers also liked (12)

Control systems lab task
Control systems lab taskControl systems lab task
Control systems lab task
 
Inverter
InverterInverter
Inverter
 
Electronic rock power point (1)
Electronic rock power point (1)Electronic rock power point (1)
Electronic rock power point (1)
 
Dc electrical current power point prentation v2.0
Dc electrical current power point prentation v2.0Dc electrical current power point prentation v2.0
Dc electrical current power point prentation v2.0
 
Transfer fn mech. systm
Transfer fn mech. systmTransfer fn mech. systm
Transfer fn mech. systm
 
Basic electrical quantities
Basic electrical quantitiesBasic electrical quantities
Basic electrical quantities
 
Cell phone detector
Cell phone detectorCell phone detector
Cell phone detector
 
Voltage
VoltageVoltage
Voltage
 
Topic 2a ac_circuits_analysis
Topic 2a ac_circuits_analysisTopic 2a ac_circuits_analysis
Topic 2a ac_circuits_analysis
 
PRESENTATION
PRESENTATIONPRESENTATION
PRESENTATION
 
Introducing Electricity
Introducing  ElectricityIntroducing  Electricity
Introducing Electricity
 
3 Things Every Sales Team Needs to Be Thinking About in 2017
3 Things Every Sales Team Needs to Be Thinking About in 20173 Things Every Sales Team Needs to Be Thinking About in 2017
3 Things Every Sales Team Needs to Be Thinking About in 2017
 

Similar to Transfer functions, poles and zeros.

Matlab fair-record-model
Matlab fair-record-modelMatlab fair-record-model
Matlab fair-record-model
ajaydev1111
 
Fourier series example
Fourier series exampleFourier series example
Fourier series example
Abi finni
 
Having this how can i output the value for each of my unknownsfunc.pdf
Having this how can i output the value for each of my unknownsfunc.pdfHaving this how can i output the value for each of my unknownsfunc.pdf
Having this how can i output the value for each of my unknownsfunc.pdf
fabmallkochi
 
Matlab 2
Matlab 2Matlab 2
Matlab 2
asguna
 

Similar to Transfer functions, poles and zeros. (20)

Reconstruction
ReconstructionReconstruction
Reconstruction
 
Dsp manual
Dsp manualDsp manual
Dsp manual
 
Two Dimensional Unsteady Heat Conduction in T-shaped Plate.pdf
Two Dimensional Unsteady Heat Conduction in T-shaped Plate.pdfTwo Dimensional Unsteady Heat Conduction in T-shaped Plate.pdf
Two Dimensional Unsteady Heat Conduction in T-shaped Plate.pdf
 
Matlab project
Matlab projectMatlab project
Matlab project
 
Modulation techniques matlab_code
Modulation techniques matlab_codeModulation techniques matlab_code
Modulation techniques matlab_code
 
Matlab fair-record-model
Matlab fair-record-modelMatlab fair-record-model
Matlab fair-record-model
 
Digital signal Processing all matlab code with Lab report
Digital signal Processing all matlab code with Lab report Digital signal Processing all matlab code with Lab report
Digital signal Processing all matlab code with Lab report
 
Csci101 lect06 advanced_looping
Csci101 lect06 advanced_loopingCsci101 lect06 advanced_looping
Csci101 lect06 advanced_looping
 
Fourier series example
Fourier series exampleFourier series example
Fourier series example
 
Matlab plotting
Matlab plottingMatlab plotting
Matlab plotting
 
Matlab programs
Matlab programsMatlab programs
Matlab programs
 
EEP306: Delta modulation
EEP306: Delta modulationEEP306: Delta modulation
EEP306: Delta modulation
 
Slides13.pdf
Slides13.pdfSlides13.pdf
Slides13.pdf
 
DSP LAB COMPLETE CODES.docx
DSP LAB COMPLETE CODES.docxDSP LAB COMPLETE CODES.docx
DSP LAB COMPLETE CODES.docx
 
Program implementation and testing
Program implementation and testingProgram implementation and testing
Program implementation and testing
 
Analysis of Electro-Mechanical System
Analysis of Electro-Mechanical SystemAnalysis of Electro-Mechanical System
Analysis of Electro-Mechanical System
 
Having this how can i output the value for each of my unknownsfunc.pdf
Having this how can i output the value for each of my unknownsfunc.pdfHaving this how can i output the value for each of my unknownsfunc.pdf
Having this how can i output the value for each of my unknownsfunc.pdf
 
Intro to Matlab programming
Intro to Matlab programmingIntro to Matlab programming
Intro to Matlab programming
 
Matlab 2
Matlab 2Matlab 2
Matlab 2
 
Transformasi z
Transformasi zTransformasi z
Transformasi z
 

Recently uploaded

Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
pritamlangde
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
HenryBriggs2
 

Recently uploaded (20)

Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
fitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .pptfitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .ppt
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
 
Post office management system project ..pdf
Post office management system project ..pdfPost office management system project ..pdf
Post office management system project ..pdf
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Electromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxElectromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptx
 
UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptx
 
Augmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxAugmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptx
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptx
 
Path loss model, OKUMURA Model, Hata Model
Path loss model, OKUMURA Model, Hata ModelPath loss model, OKUMURA Model, Hata Model
Path loss model, OKUMURA Model, Hata Model
 
Linux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using PipesLinux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using Pipes
 
Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...
 
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
 

Transfer functions, poles and zeros.

  • 1. Discrete Time Signal Processing Lab 1 Q1. Find the transfer function? Plot poles, zeros on z-plane? MATLAB code clc clear all close all %Q1 P1=[1/3; 2; 3]; %poles Z1=[-1]; %zeros figure(1); zplane(Z1, P1) %pole-zero plot command [num1, den1]=zp2tf(Z1, P1, 1); % get num denum of transfer function TF1=filt(num1,den1) % gives the transfer function, Output Q2. Poles and zeros are given, poles are complex. Plot poles, zeros on zplane. Find Transfer function? MATLAB code P2=[0.5j; -0.5j] ; %poles Z2=[1/4]; figure(2) zplane(Z2, P2) [num2, den2]=zp2tf(Z2, P2, 1); TF2=filt(num2,den2)
  • 2. Discrete Time Signal Processing Lab 2 Output The output pole zero plot is shown in figure2 above. And we got Transfer function at command window, it was.. Q3. Poles and Zeros are given. Zeros are complex values. Plot poles, zeros on z-plane. Find transfer function? MATLAB code P3=[0.65]; Z3=[0.65 + 0.65j; 0.65-0.65j]; figure(3) zplane(Z3, P3); [num3, den3]=zp2tf(Z3, P3, 1); TF3=filt(num3,den3) Output
  • 3. Discrete Time Signal Processing Lab 3 MATLAB code syms a x n n=(0:120) a1=0.6; x1=a1.^n; stem(n,x1) a2=-3; x2=a2.^n; stem(n,x2) a3=0.5*exp((pi/4)*j); x3=a3.^n; stem(n,x3) %b part num4b=[0 1] denum4b=[1 -0.7] freqz(num4b,denum4b) denum4b2=[1 3] freqz(num4b,denum4b2) The respective output plots are shown below, mentioned with detailed title.
  • 4. Discrete Time Signal Processing Lab 4
  • 5. Discrete Time Signal Processing Lab 5 Part c of this question was much similar to the part b of Q5 while solving, so it is solved once for part b os Q5. i.e same MATLAB commands are to be implemented. MATLAB code %a part P5=[-1/4; 1/3]; Z5=[-1/3]; figure(5) zplane(Z5, P5)
  • 6. Discrete Time Signal Processing Lab 6 Code for part b of Q5 is written below, its output is mentioned with label in above figures. %b part [num5, den5]=zp2tf(Z5, P5, 1) TF5=filt(num5,den5) [Z5b,P5b,K] = tf2zp(num5,den5) roots([ 1.0000; -0.0833; -0.0833]) MATLAB code b. finding poles and zeros using roots command code zeros=roots([2; 2; 2]) poles=roots([2; -3; 1]) output finding poles and zeros using tf2zp command, output at command window shown below.
  • 7. Discrete Time Signal Processing Lab 7 a. Poles zeros plot using zplane command. MATLAB code P6=([1.00; 0.500]) Z6=([-0.5000 + 0.8660i; -0.5000 - 0.8660i]) Zplane(Z,P) Engr. Arif Hussain COMSATS Abbottabad, Pakistan.