Inverse Z-Transform of z/(z-a) - Strange result
6 次查看(过去 30 天)
显示 更早的评论
Hello everyone, I tried to get the inverse Z-transform of z/(z-a) with the following lines:
close all
clear all
syms a n z
iz=iztrans(z/(z-a),z,n)
the result is:
piecewise([a == 0, kroneckerDelta(n, 0)], [a ~= 0, a*(a^n/a - kroneckerDelta(n, 0)/a) + kroneckerDelta(n, 0)])
but I expect a^n. How can I get a^n?
Thank you for your time.
1 个评论
Karan Gill
2017-7-26
To add to Star Strider's answer below, your result contains the piecewise function. See that doc page for more info.
采纳的回答
Star Strider
2017-7-26
Specify ‘a>0’, and simplify:
syms a n z
assume(a > 0)
iz=iztrans(z/(z-a),z,n);
iz = simplify(iz);
iz =
a^n
更多回答(1 个)
Arthur Ngnepiepaye
2020-11-6
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/405460/image.png)
Can someone help me out plotting this zero input response? It's confusing
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Number Theory 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!