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
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
Star Strider 2017 年 7 月 26 日

1 投票

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
Arthur Ngnepiepaye 2020 年 11 月 6 日

0 投票

Can someone help me out plotting this zero input response? It's confusing

1 件のコメント

Star Strider
Star Strider 2020 年 11 月 6 日
Post this as a new Question.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by