Z transom and inverse Z transform are not matching

3 ビュー (過去 30 日間)
Shakeel Ahmad Waqas
Shakeel Ahmad Waqas 2016 年 12 月 1 日
回答済み: Star Strider 2016 年 12 月 1 日
I am having a few issues in Z transform and Inverse Z transform in Matlab. I am writting one for example here. when I perform z transform of x^n. It gives me -z/(x - z) which is exactly fine. but when I find inverse z transform of -z/(x-z) it is giving me a large output: piecewise([x == 0, kroneckerDelta(n, 0)], [x ~= 0, kroneckerDelta(n, 0) - x*(kroneckerDelta(n, 0)/x - x^n/x)]) why is that so.?

回答 (1 件)

Star Strider
Star Strider 2016 年 12 月 1 日
Add a simplify call:
syms x n z real
assume(x > 0)
fcn = x^n;
q1 = ztrans(fcn, n, z);
q2 = iztrans(q1, z, n);
Out = simplify(q2, 'Steps', 20)
Out =
x^n

Community Treasure Hunt

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

Start Hunting!

Translated by