0% found this document useful (1 vote)
245 views6 pages

DSP Lab 4 Handout

This document describes an experiment on z-transforms. It includes definitions of the bilateral and unilateral z-transform and discusses converting between rational and factored z-transform representations. It also covers plotting pole-zero diagrams, computing the frequency response using freqz, and determining the partial fraction expansion. The lab tasks involve finding the z-transform of signals, representing sequences in the z-domain, and analyzing digital filters using z-transform techniques.

Uploaded by

Sohail Afridi
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
245 views6 pages

DSP Lab 4 Handout

This document describes an experiment on z-transforms. It includes definitions of the bilateral and unilateral z-transform and discusses converting between rational and factored z-transform representations. It also covers plotting pole-zero diagrams, computing the frequency response using freqz, and determining the partial fraction expansion. The lab tasks involve finding the z-transform of signals, representing sequences in the z-domain, and analyzing digital filters using z-transform techniques.

Uploaded by

Sohail Afridi
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

International Islamic University, Islamabad

Digital Signal Processing LAB

EXPERIMENT # 04: Z- Transform


Name of Student: .. Roll No.: Date of Experiment: .. Report submitted on: ..

Marks obtained: Remarks: Instructors Signature: ...

Digital Signal Processing Lab

Engr. Rizwan Sadiq

Page 1

Z-Transform:
Description: In mathematics and signal processing, the Z-transform converts a discrete time-domain signal, which is a sequence of real or complex numbers, into a complex frequency-domain representation. The Z-transform, like many other integral transforms, can be defined as either a one-sided or two-sided transform.

Bilateral Z-transform
The bilateral or two-sided Z-transform of a discrete-time signal x[n] is the function X(z) defined as

Unilateral Z-transform
Alternatively, in cases where x[n] is defined only for n 0, the single-sided or unilateral Ztransform is defined as

In signal processing, this definition is used when the signal is causal. Rational Z-transform to factored Z-transform: Example: Let the given transfer function be in the rational form, 2z4+16z3+44z2+56z+32 G(z)= -------------------------------3z4+3z3-15z2+18z-12 It is required to convert it into factored form, so that we can find the poles and zeros mathematically by applying quadratic equation. Matlab command required for converting rational form to factored form is Zp2sos The factored form of G(z) as evaluated by zp2sos be,

Digital Signal Processing Lab

Engr. Rizwan Sadiq

Page 2

G(z)

( 0.6667 + 0.4z-1 + 0.5333 z-2) (1.000 + 2.000 z-1 +2.000 z-2) (1.000 + 2.000z-1 -4.000z-2 )(1.000 - 1.000 z-1 + 1.000 z-2)

Factored Z-transform / zeros,poles to rational Z-transform: It is the inverse of the above case, when the transfer function is given in factored form and it is required to convert in rational form then a single matlab command can serve the purpose. Example:
Lets use the above result i-e;transfer function in factored for, G(z)=( 0.6667 + 0.4z-1 + 0.5333 z-2) (1.000 + 2.000 z-1 +2.000 z-2) (1.000 + 2.000z-1 -4.000z-2 )(1.000 - 1.000 z-1 + 1.000 z-2)

For building up transfer function in rational form we find the poles and zers of above system simply by using matlab root command or by hand. Or simply we have poles and zeros of the given system we can find the transfer function in factored form. Matlab command that converts poles and zeros of the system in to transfer function is zp2tf . Rational Z-transform to partial fraction form: This technique is usually used , while taking the inverse Z-transform and when the order H(z) is high so that it is quite difficult to solve it mathematically. Example:
Consider the transfer function in the rational form i-e; 18z3 G(z)= -----------------18z3+3z2-4z-1

We can evaluate the partial fraction form of the above system using matlab command. The partial fraction form be,
G(z)= 0.36__ + __0.24__ + _0.4____ 1 0.5z-1 1+0.33 z-1 (1+0.33 z-1)

Matlab command that converts rational z-transform in to partial fraction form is residuez. Zplane:
Zero-pole plot

zplane(b,a)
This function displays the poles and zeros of discrete-time systems.

Digital Signal Processing Lab

Engr. Rizwan Sadiq

Page 3

pzmap Compute pole-zero map of LTI models Syntax pzmap(sys) pzmap(sys1,sys2,...,sysN)

Symbolic Representation of Z-Transform ztrans z-transform Syntax F = ztrans(f) F = ztrans(f, w) syms z n a=ztrans(1/16^n)

syms n; f = n^4; ztrans(f) ans = (z^4 + 11*z^3 + 11*z^2 + z)/(z - 1)^5

Inverse Z-Transform: syms Z n iztrans(3*Z/(Z+1)) syms z f = 2*z/(z-2)^2; iztrans(f) returns ans = 2^n + 2^n*(n - 1) Pole Zero Diagrams For A Function In Z Domain: Z plane command computes and display the pole-zero diagram of Z function. The Command is Zplane(b,a) To display the pole value, use root(a) To display the zero value, use root(b)

Digital Signal Processing Lab

Engr. Rizwan Sadiq

Page 4

Matlab Code: b=[0 1 1 ] a= [1 -2 +3] roots(a) roots(b) zplane(b,a); ans = 1.0000 + 1.4142i 1.0000 - 1.4142i ans= -1

The Freqz function computes and display the frequency response of given Z- Transform of the function freqz(b,a,Fs) The Impulse Response of the system can be computed using impz(Num,Den)

Digital Signal Processing Lab

Engr. Rizwan Sadiq

Page 5

Lab Task:
1. Plot the magnitude and phase of the frequency response of the given digital filter Using freqz function:

Y(n) = 0.2x(n) + 0.52y(n-1) 0.68(y(n-2) 2. Express the following z-transform in factored form , plot its poles and zeros,and then determine its ROCs. 2z4+16z3+44z2+56z+32 G(z)= -------------------------------3z4+3z3-15z2+18z-12 3. Determine the partial fraction expansion of the z-transform G(z) given by 18z3 G(z)= -----------------18z3+3z2-4z-1

4. Find the z-transform of 10 cos 2n 5. Represent all the common sequences (given in text book) in z-domain, using symbolic tool box and also their inverse transform.

Note: a) This assignment must be submitted before the next lab. b) The assignment submitted must be in proper format as instructed by the teacher to get maximum marks. c) Marks will be deducted on late submissions.

Digital Signal Processing Lab

Engr. Rizwan Sadiq

Page 6

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy