Vous êtes sur la page 1sur 25

Electrical Engineering Program

RIT Dubai

EEEE 789

SP: Digital Control


Practice Session on
Discrete Time Systems and Z Transform

Discrete Time Systems and Z


Transform

Problem 1
a. Solve the following difference equations
b. Using MATLAB compute the output and plot them.

Solution

Discrete Time Systems and Z


Transform

Discrete Time Systems and Z


Transform

%a)
a=.5;b=[02];
n=0:30;
y0=0;
x0=0;
x=zeros(size(n));
x(1)=1;
y=recur(a,b,n,x,x0,y0);
subplot(221),stem(n,y)
title(1a))
xlabel(n)
ylabel(y[n])
y(1:5)%displaysyforn=0to5,usedtodoublecheckhandanswers
%b)
a=2;b=[02];
n=0:30;
y0=0;
x0=0;
x=zeros(size(n));
x(1)=1;
y=recur(a,b,n,x,x0,y0);
subplot(222),stem(n,y)
title(1b))
xlabel(n)
ylabel(y[n])
y(1:5)
%c)
a=[1.2.32];b=[11];
y0=[12];
x0=0;
x=ones(size(n));
y=recur(a,b,n,x,x0,y0);
subplot(223),stem(n,y)
title(1c))
xlabel(n)
ylabel(y[n])
y(1:5)

Discrete Time Systems and Z


Transform

Discrete Time Systems and Z


Transform

Problem 2

A discrete-time signal x[n] has z-transform

Determine the z-transform V(z) of the following


signals:

6 Z
Discrete Time Systems and
Transform

Problem 2 Solution

Discrete Time Systems and Z


Transform

Problem 2 Solution

Discrete Time Systems and Z


Transform

Problem 3
Compute the z-transform of the discrete-time signals
(a)-(j). Express your answer as a ratio of polynomials
in z whenever possible.

)x[n] = n for n=0,1,2 and x[n] = -n for all n3


x[n]= (n -1)u[n] nu[n-3]
x[n] = (0.25)-n u[n-2]

9 Z
Discrete Time Systems and
Transform

Problem 3 Solution

Discrete Time Systems and Z


Transform

10

Problem 3 Solution

Discrete Time Systems and Z


Transform

11

roblem 3 Solution

Discrete Time Systems and Z


Transform

12

Problem 3 Solution

Discrete Time Systems and Z


Transform

13

oblem 3 Solution using MATLAB

syms x n z
x=heaviside(n)-heaviside(n-1)+2*(heavisi de(n-l)heaviside(n-2))
X=simplify(ztrans(x))

syms x n z
x=heaviside(n)-heaviside(n2)+2*heaviside(n-2)
X=simplify(ztrans(x))

Discrete Time Systems and Z


Transform

14

oblem 3 Solution using MATLAB


syms x n z
x=exp(O.S*n)*heaviside(n)
+heaviside(n-2);
X=simplify(ztrans(x)J

syms x n z
x=exp(0.5*n)* (heaviside(n)-heaviside(n-2))
+heaviside(n-2);
X- simplify(ztrans(x))

Discrete Time Systems and Z


Transform

15

oblem 3 Solution using MATLAB


syms x n z pi
x=sin (pi*n/2) *heaviside(n2);
X=simplify(ztrans(x))
syms x n z
x=((O.SJ"nJ*n*heavi
side(n);
X=simplify(ztrans(x))
syms x n z
x=heaviside(n)-n*heaviside{n-l)+
((l/3)"n)*heaviside(n-2);
X=simplify(ztrans(x))

Discrete Time Systems and Z


Transform

16

oblem 3 Solution using MATLAB


syms x n z
x=n*(heaviside(n)-heaviside(n-3))n*heaviside(n-3);
X=zsimplify(ztrans (x))

syms x n z
x=(n-l)*heaviside(n)n*heaviside(n-3);
X=simplify(ztrans(x))
syms x n z
x=(0.25"{n))*heaviside{n-2);
x-=simplify(ztrans(x))

Discrete Time Systems and Z


Transform

17

Problem 4
Compute the inverse z-transform x[n] of the
transforms (a)-(h).

Discrete Time Systems and Z


Transform

18

Problem 4 Solution

Discrete Time Systems and Z


Transform

19

Problem 4 Solution

Discrete Time Systems and Z


Transform

20

Problem 4 Solution

Discrete Time Systems and Z


Transform

21

Problem 5
Find the inverse z-transform x[n] of the transforms
that follow. Determine x[n] for all n.

Discrete Time Systems and Z


Transform

22

Problem 5 Solution

Discrete Time Systems and Z


Transform

23

Problem 5 Solution

Discrete Time Systems and Z


Transform

24

Problem 5 Solution

Discrete Time Systems and Z


Transform

25

Vous aimerez peut-être aussi