SlideShare a Scribd company logo
1 of 12
CS-419 Digital Signal Processing
Lab#5
CISE Department, NEDUET Karachi
Lab#05
Computation of Z – transform
Z – TRANSFORM
 There are numerous systems that are described by difference
equations rather than differential equations.
 In continuous systems, inputs and outputs are related by
differential equations and Laplace transform techniques are
used to solve those differential equations.
 In sampled systems, inputs and
 outputs are related by difference equations and Z-transform
techniques are used to solve those differential equations.
 Z-transform plays the role in sampled systems and represents
systems with
 transfer functions while Laplace transform plays the role in
continuous systems and represent systems with transfer
functions.
3
Z – TRANSFORM
Z-transform is discrete in nature or we can say
that Z-transform operates in discrete time
domain.
With the help of Z-transform we can check the
stability of the systems such as filters, speech
processing systems, etc.
The Z-transform, like many integral
transforms, can be defined as either a one-
sided or two-sided transform.
4
Z – TRANSFORM
 The bilateral or two-sided Z-transform of a discrete-
time signal x[n] is the function X(z) defined as:
𝑿 𝒛 = 𝒁 𝒙 𝒏 = 𝒏=−∞
∞
𝒙 𝒏 𝒛−𝒏
(5.1)
where, n is an integer and z is, in general, a complex number
𝒛 = 𝑨𝒆𝒋𝝋 = 𝑨 𝒄𝒐𝒔𝝋 + 𝒋𝒔𝒊𝒏𝝋 (5.2)
Where, A is the magnitude of z, and φ is the complex argument (also referred to
as angle or phase) in radians.
 Alternatively, in cases where x[n] is defined only for n
≥ 0, the single-sided or unilateral Z transform is
defined as:
𝑿 𝒛 = 𝒁 𝒙 𝒏 = 𝒏=𝟎
∞
𝒙 𝒏 𝒛−𝒏
(5.3)
5
STABILITY CRITERIA FOR Z – TRANSFORM
 Once the poles and zeros have been found for a given
Z-Transform, they can be plotted onto the ZPlane.
 The Z-plane is a complex plane with an imaginary and
real axis referring to the complex-valued variable z.
 The position on the complex plane is given by r℮^(jθ)
and the angle from the positive, real axis around the
plane which is denoted by θ.
 When mapping poles and zeros onto the plane, poles
are denoted by an "x" and zeros by an "o".
6
STABILITY CRITERIA FOR Z – TRANSFORM 7
Frequency response and stability of the system
 If the poles lie inside the unit circle the system is said to be
stable.
 If the poles lies on the unit circle the system is said to be
marginally stable.
 If the poles lies outside the unit circle the system will be
unstable.
 The placement of poles and zeros in the unit circle
provides us the frequency response as well as the
stability of the system.
8
Z – Transform using MATLAB
 Following are the MATLAB commands which are related to the Z
transform.
» freqz used for calculating / displaying frequency response
» impz used for calculating / displaying impulse response
» zplane plots the zeros and poles with unit circle
» tf2zp finds zeros, poles and gain from H = B/A
» zp2tf Transforms from zero, poles , gain back to t = B/A
» residuez Finds residues, poles, direct terms of partial
fraction
» poly convert roots to polynomial
» roots computes roots of a polynomial
» conv used for multiplying 2 polynomials A & B.
9
ZPLANE command
ZPLANE (Z-plane zero-pole plot):
ZPLANE (Z,P) plots the zeros Z and poles P (in column
vectors)with the unit circle for reference. Each zero is
represented with an 'o' and each pole with an 'x' on the
plot. Multiple zeros and poles are indicated by the
multiplicity number shown to the upper right of the zero
or pole.
 Example:
z = [1 2]; % coefficient of zeros
p = [1 0.9]; % coefficient of poles
zplane (z, p);
10
Exercise
 Task # 1: Find out the zeros and poles of the following transfer
functions by using ‘roots’ command and also plot them by
using ‘pzmap’ command.
1) 𝐻 𝑧 =
𝑧+1
𝑧2
−0.9𝑧+0.81
2) 𝐻 𝑧 =
2𝑧2
+5𝑧+ 12
𝑧2
+2𝑧+10
 Task # 2: Use the ‘freqz’ function to evaluate the frequency
response of a Z–Transform shown of task 1. Where -20 ≤ ω ≤ 20
is the frequency vector in radians/seconds. (Use “linespace”
function to generate a vector with 200 samples).
Hint: H = freqz (b, a, w)
11
Exercise
Task # 3: For above task, also plot the magnitude
response (in dB) and phase response (in degree) by
using the subplot command.
Task # 4: Write a MATLAB program to find poles
and zeros of the system given by:
y(n) = x(n) + 2x(n-1) - 0.9y(n-1)
12

More Related Content

Similar to Z-Transform.pptx

Digital Signal Processing and the z-transform
Digital Signal Processing and the  z-transformDigital Signal Processing and the  z-transform
Digital Signal Processing and the z-transformRowenaDulay1
 
dsp dsp by Dr. k Udaya kumar power point
dsp dsp by Dr. k Udaya kumar power pointdsp dsp by Dr. k Udaya kumar power point
dsp dsp by Dr. k Udaya kumar power pointAnujKumar734472
 
Control systems formula book
Control systems formula bookControl systems formula book
Control systems formula bookHussain K
 
Z trasnform & Inverse Z-transform in matlab
Z trasnform & Inverse Z-transform in matlabZ trasnform & Inverse Z-transform in matlab
Z trasnform & Inverse Z-transform in matlabHasnain Yaseen
 
DSP_FOEHU - MATLAB 03 - The z-Transform
DSP_FOEHU - MATLAB 03 - The z-TransformDSP_FOEHU - MATLAB 03 - The z-Transform
DSP_FOEHU - MATLAB 03 - The z-TransformAmr E. Mohamed
 
Frequency Analysis using Z Transform.pptx
Frequency Analysis  using Z Transform.pptxFrequency Analysis  using Z Transform.pptx
Frequency Analysis using Z Transform.pptxDrPVIngole
 
Transformasi z
Transformasi zTransformasi z
Transformasi zschlamhaff
 
Introduction to Digital Signal Processing (DSP) - Course Notes
Introduction to Digital Signal Processing (DSP) - Course NotesIntroduction to Digital Signal Processing (DSP) - Course Notes
Introduction to Digital Signal Processing (DSP) - Course NotesAhmed Gad
 
Laplace Transform and its applications
Laplace Transform and its applicationsLaplace Transform and its applications
Laplace Transform and its applicationsDeepRaval7
 
UNIT-II : SEQUENTIAL CIRCUIT DESIGN
UNIT-II  : SEQUENTIAL CIRCUIT DESIGN UNIT-II  : SEQUENTIAL CIRCUIT DESIGN
UNIT-II : SEQUENTIAL CIRCUIT DESIGN Dr.YNM
 
UNIT-II -DIGITAL SYSTEM DESIGN
UNIT-II -DIGITAL SYSTEM DESIGNUNIT-II -DIGITAL SYSTEM DESIGN
UNIT-II -DIGITAL SYSTEM DESIGNDr.YNM
 
Neural Network
Neural NetworkNeural Network
Neural Networksamisounda
 
Dsp U Lec06 The Z Transform And Its Application
Dsp U   Lec06 The Z Transform And Its ApplicationDsp U   Lec06 The Z Transform And Its Application
Dsp U Lec06 The Z Transform And Its Applicationtaha25
 
z-transform-150605141354-lva1-app6891 (1).pdf
z-transform-150605141354-lva1-app6891 (1).pdfz-transform-150605141354-lva1-app6891 (1).pdf
z-transform-150605141354-lva1-app6891 (1).pdf22r01a0453
 

Similar to Z-Transform.pptx (20)

Digital Signal Processing and the z-transform
Digital Signal Processing and the  z-transformDigital Signal Processing and the  z-transform
Digital Signal Processing and the z-transform
 
dsp dsp by Dr. k Udaya kumar power point
dsp dsp by Dr. k Udaya kumar power pointdsp dsp by Dr. k Udaya kumar power point
dsp dsp by Dr. k Udaya kumar power point
 
Control systems formula book
Control systems formula bookControl systems formula book
Control systems formula book
 
Digital signal processing part2
Digital signal processing part2Digital signal processing part2
Digital signal processing part2
 
Control chap7
Control chap7Control chap7
Control chap7
 
Z trasnform & Inverse Z-transform in matlab
Z trasnform & Inverse Z-transform in matlabZ trasnform & Inverse Z-transform in matlab
Z trasnform & Inverse Z-transform in matlab
 
DSP_FOEHU - MATLAB 03 - The z-Transform
DSP_FOEHU - MATLAB 03 - The z-TransformDSP_FOEHU - MATLAB 03 - The z-Transform
DSP_FOEHU - MATLAB 03 - The z-Transform
 
Signals and Systems Assignment Help
Signals and Systems Assignment HelpSignals and Systems Assignment Help
Signals and Systems Assignment Help
 
Frequency Analysis using Z Transform.pptx
Frequency Analysis  using Z Transform.pptxFrequency Analysis  using Z Transform.pptx
Frequency Analysis using Z Transform.pptx
 
Z Transform
Z TransformZ Transform
Z Transform
 
Transformasi z
Transformasi zTransformasi z
Transformasi z
 
Introduction to Digital Signal Processing (DSP) - Course Notes
Introduction to Digital Signal Processing (DSP) - Course NotesIntroduction to Digital Signal Processing (DSP) - Course Notes
Introduction to Digital Signal Processing (DSP) - Course Notes
 
Laplace Transform and its applications
Laplace Transform and its applicationsLaplace Transform and its applications
Laplace Transform and its applications
 
Z transform
Z transformZ transform
Z transform
 
UNIT-II : SEQUENTIAL CIRCUIT DESIGN
UNIT-II  : SEQUENTIAL CIRCUIT DESIGN UNIT-II  : SEQUENTIAL CIRCUIT DESIGN
UNIT-II : SEQUENTIAL CIRCUIT DESIGN
 
UNIT-II -DIGITAL SYSTEM DESIGN
UNIT-II -DIGITAL SYSTEM DESIGNUNIT-II -DIGITAL SYSTEM DESIGN
UNIT-II -DIGITAL SYSTEM DESIGN
 
Permutations 2020
Permutations 2020Permutations 2020
Permutations 2020
 
Neural Network
Neural NetworkNeural Network
Neural Network
 
Dsp U Lec06 The Z Transform And Its Application
Dsp U   Lec06 The Z Transform And Its ApplicationDsp U   Lec06 The Z Transform And Its Application
Dsp U Lec06 The Z Transform And Its Application
 
z-transform-150605141354-lva1-app6891 (1).pdf
z-transform-150605141354-lva1-app6891 (1).pdfz-transform-150605141354-lva1-app6891 (1).pdf
z-transform-150605141354-lva1-app6891 (1).pdf
 

Recently uploaded

History of Indian Railways - the story of Growth & Modernization
History of Indian Railways - the story of Growth & ModernizationHistory of Indian Railways - the story of Growth & Modernization
History of Indian Railways - the story of Growth & ModernizationEmaan Sharma
 
Basics of Relay for Engineering Students
Basics of Relay for Engineering StudentsBasics of Relay for Engineering Students
Basics of Relay for Engineering Studentskannan348865
 
DBMS-Report on Student management system.pptx
DBMS-Report on Student management system.pptxDBMS-Report on Student management system.pptx
DBMS-Report on Student management system.pptxrajjais1221
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Ramkumar k
 
Artificial Intelligence in due diligence
Artificial Intelligence in due diligenceArtificial Intelligence in due diligence
Artificial Intelligence in due diligencemahaffeycheryld
 
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...josephjonse
 
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdflitvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdfAlexander Litvinenko
 
Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...IJECEIAES
 
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.pptxMustafa Ahmed
 
Passive Air Cooling System and Solar Water Heater.ppt
Passive Air Cooling System and Solar Water Heater.pptPassive Air Cooling System and Solar Water Heater.ppt
Passive Air Cooling System and Solar Water Heater.pptamrabdallah9
 
Artificial intelligence presentation2-171219131633.pdf
Artificial intelligence presentation2-171219131633.pdfArtificial intelligence presentation2-171219131633.pdf
Artificial intelligence presentation2-171219131633.pdfKira Dess
 
21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docxrahulmanepalli02
 
Databricks Generative AI Fundamentals .pdf
Databricks Generative AI Fundamentals  .pdfDatabricks Generative AI Fundamentals  .pdf
Databricks Generative AI Fundamentals .pdfVinayVadlagattu
 
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxSLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxCHAIRMAN M
 
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.pptxMustafa Ahmed
 
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.pptxkalpana413121
 
Independent Solar-Powered Electric Vehicle Charging Station
Independent Solar-Powered Electric Vehicle Charging StationIndependent Solar-Powered Electric Vehicle Charging Station
Independent Solar-Powered Electric Vehicle Charging Stationsiddharthteach18
 
Call for Papers - Journal of Electrical Systems (JES), E-ISSN: 1112-5209, ind...
Call for Papers - Journal of Electrical Systems (JES), E-ISSN: 1112-5209, ind...Call for Papers - Journal of Electrical Systems (JES), E-ISSN: 1112-5209, ind...
Call for Papers - Journal of Electrical Systems (JES), E-ISSN: 1112-5209, ind...Christo Ananth
 
Geometric constructions Engineering Drawing.pdf
Geometric constructions Engineering Drawing.pdfGeometric constructions Engineering Drawing.pdf
Geometric constructions Engineering Drawing.pdfJNTUA
 

Recently uploaded (20)

History of Indian Railways - the story of Growth & Modernization
History of Indian Railways - the story of Growth & ModernizationHistory of Indian Railways - the story of Growth & Modernization
History of Indian Railways - the story of Growth & Modernization
 
Basics of Relay for Engineering Students
Basics of Relay for Engineering StudentsBasics of Relay for Engineering Students
Basics of Relay for Engineering Students
 
DBMS-Report on Student management system.pptx
DBMS-Report on Student management system.pptxDBMS-Report on Student management system.pptx
DBMS-Report on Student management system.pptx
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)
 
Artificial Intelligence in due diligence
Artificial Intelligence in due diligenceArtificial Intelligence in due diligence
Artificial Intelligence in due diligence
 
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
 
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdflitvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
 
Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...
 
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
 
Passive Air Cooling System and Solar Water Heater.ppt
Passive Air Cooling System and Solar Water Heater.pptPassive Air Cooling System and Solar Water Heater.ppt
Passive Air Cooling System and Solar Water Heater.ppt
 
Artificial intelligence presentation2-171219131633.pdf
Artificial intelligence presentation2-171219131633.pdfArtificial intelligence presentation2-171219131633.pdf
Artificial intelligence presentation2-171219131633.pdf
 
21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx
 
Databricks Generative AI Fundamentals .pdf
Databricks Generative AI Fundamentals  .pdfDatabricks Generative AI Fundamentals  .pdf
Databricks Generative AI Fundamentals .pdf
 
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxSLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
 
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
 
Signal Processing and Linear System Analysis
Signal Processing and Linear System AnalysisSignal Processing and Linear System Analysis
Signal Processing and Linear System Analysis
 
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
 
Independent Solar-Powered Electric Vehicle Charging Station
Independent Solar-Powered Electric Vehicle Charging StationIndependent Solar-Powered Electric Vehicle Charging Station
Independent Solar-Powered Electric Vehicle Charging Station
 
Call for Papers - Journal of Electrical Systems (JES), E-ISSN: 1112-5209, ind...
Call for Papers - Journal of Electrical Systems (JES), E-ISSN: 1112-5209, ind...Call for Papers - Journal of Electrical Systems (JES), E-ISSN: 1112-5209, ind...
Call for Papers - Journal of Electrical Systems (JES), E-ISSN: 1112-5209, ind...
 
Geometric constructions Engineering Drawing.pdf
Geometric constructions Engineering Drawing.pdfGeometric constructions Engineering Drawing.pdf
Geometric constructions Engineering Drawing.pdf
 

Z-Transform.pptx

  • 1. CS-419 Digital Signal Processing Lab#5 CISE Department, NEDUET Karachi
  • 2. Lab#05 Computation of Z – transform
  • 3. Z – TRANSFORM  There are numerous systems that are described by difference equations rather than differential equations.  In continuous systems, inputs and outputs are related by differential equations and Laplace transform techniques are used to solve those differential equations.  In sampled systems, inputs and  outputs are related by difference equations and Z-transform techniques are used to solve those differential equations.  Z-transform plays the role in sampled systems and represents systems with  transfer functions while Laplace transform plays the role in continuous systems and represent systems with transfer functions. 3
  • 4. Z – TRANSFORM Z-transform is discrete in nature or we can say that Z-transform operates in discrete time domain. With the help of Z-transform we can check the stability of the systems such as filters, speech processing systems, etc. The Z-transform, like many integral transforms, can be defined as either a one- sided or two-sided transform. 4
  • 5. Z – TRANSFORM  The bilateral or two-sided Z-transform of a discrete- time signal x[n] is the function X(z) defined as: 𝑿 𝒛 = 𝒁 𝒙 𝒏 = 𝒏=−∞ ∞ 𝒙 𝒏 𝒛−𝒏 (5.1) where, n is an integer and z is, in general, a complex number 𝒛 = 𝑨𝒆𝒋𝝋 = 𝑨 𝒄𝒐𝒔𝝋 + 𝒋𝒔𝒊𝒏𝝋 (5.2) Where, A is the magnitude of z, and φ is the complex argument (also referred to as angle or phase) in radians.  Alternatively, in cases where x[n] is defined only for n ≥ 0, the single-sided or unilateral Z transform is defined as: 𝑿 𝒛 = 𝒁 𝒙 𝒏 = 𝒏=𝟎 ∞ 𝒙 𝒏 𝒛−𝒏 (5.3) 5
  • 6. STABILITY CRITERIA FOR Z – TRANSFORM  Once the poles and zeros have been found for a given Z-Transform, they can be plotted onto the ZPlane.  The Z-plane is a complex plane with an imaginary and real axis referring to the complex-valued variable z.  The position on the complex plane is given by r℮^(jθ) and the angle from the positive, real axis around the plane which is denoted by θ.  When mapping poles and zeros onto the plane, poles are denoted by an "x" and zeros by an "o". 6
  • 7. STABILITY CRITERIA FOR Z – TRANSFORM 7
  • 8. Frequency response and stability of the system  If the poles lie inside the unit circle the system is said to be stable.  If the poles lies on the unit circle the system is said to be marginally stable.  If the poles lies outside the unit circle the system will be unstable.  The placement of poles and zeros in the unit circle provides us the frequency response as well as the stability of the system. 8
  • 9. Z – Transform using MATLAB  Following are the MATLAB commands which are related to the Z transform. » freqz used for calculating / displaying frequency response » impz used for calculating / displaying impulse response » zplane plots the zeros and poles with unit circle » tf2zp finds zeros, poles and gain from H = B/A » zp2tf Transforms from zero, poles , gain back to t = B/A » residuez Finds residues, poles, direct terms of partial fraction » poly convert roots to polynomial » roots computes roots of a polynomial » conv used for multiplying 2 polynomials A & B. 9
  • 10. ZPLANE command ZPLANE (Z-plane zero-pole plot): ZPLANE (Z,P) plots the zeros Z and poles P (in column vectors)with the unit circle for reference. Each zero is represented with an 'o' and each pole with an 'x' on the plot. Multiple zeros and poles are indicated by the multiplicity number shown to the upper right of the zero or pole.  Example: z = [1 2]; % coefficient of zeros p = [1 0.9]; % coefficient of poles zplane (z, p); 10
  • 11. Exercise  Task # 1: Find out the zeros and poles of the following transfer functions by using ‘roots’ command and also plot them by using ‘pzmap’ command. 1) 𝐻 𝑧 = 𝑧+1 𝑧2 −0.9𝑧+0.81 2) 𝐻 𝑧 = 2𝑧2 +5𝑧+ 12 𝑧2 +2𝑧+10  Task # 2: Use the ‘freqz’ function to evaluate the frequency response of a Z–Transform shown of task 1. Where -20 ≤ ω ≤ 20 is the frequency vector in radians/seconds. (Use “linespace” function to generate a vector with 200 samples). Hint: H = freqz (b, a, w) 11
  • 12. Exercise Task # 3: For above task, also plot the magnitude response (in dB) and phase response (in degree) by using the subplot command. Task # 4: Write a MATLAB program to find poles and zeros of the system given by: y(n) = x(n) + 2x(n-1) - 0.9y(n-1) 12