Z-Transform of difference Equation

I must find Z-Transform of this equation but either i get wrong answer or errors

2 Comments

Are you trying to do it manually or by using matlab? If it is by using matlab, read about the zplane function in matlab.
by using matlab, i checked zplane but didn't get how i can use it in this q. also i did this code but can't use y(-1) and the other condition
syms y(n) z
assume(n>=0)
F=y(n)-3/2*y(n-1)+1/2*y(n-2)-(1/4)^n*heaviside(n)
X=ztrans(F,n,z)
pretty(X)

Sign in to comment.

 Accepted Answer

Use the subs (link) function:
X = subs(X, {ztrans(y(n), n, z), y(-1), y(-2)}, {Y(z), 4, 10})
producing:
X =
Y(z) - (3*Y(z))/(2*z) + Y(z)/(2*z^2) - 1/(4*z - 1) + 2/z - 3/2

1 Comment

I wrote the subs command as you did, but the initial values ​​in the output are still unchanged. can you help me?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!