iztrans giving unexpected outputs

9 ビュー (過去 30 日間)
Aidan
Aidan 2025 年 3 月 4 日
コメント済み: Sam Chak 2025 年 3 月 6 日
My textbook says that the invers Z transform is
My code says the invers is simply k
syms z k
E1 = z/((z-1)^2);
e1_k=iztrans(E1,k)
e1_k = 
k
  4 件のコメント
Aidan
Aidan 2025 年 3 月 4 日
I tested more than just the example given and they were all way off, ;--; I feel like there must be some context for these problems im missing to use this function
Paul
Paul 2025 年 3 月 4 日
Keep in mind that iztrans only applies to inverting the unilateral z-transform. If your book examples are for the bilateral z-transform, then there could be an issue. But that's not the issue for the example cited in the question.

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

採用された回答

Sam Chak
Sam Chak 2025 年 3 月 4 日
Another way is to provide a proof by contradiction. Misprints can happen due to a lack of proofreading.
syms n
f1 = n*(-1)^n;
ztrans(f1)
ans = 
f2 = n;
ztrans(f2)
ans = 
  2 件のコメント
Aidan
Aidan 2025 年 3 月 4 日
I went back and tested more problems in the book, non of the answers match what the function returns ;--;
Sam Chak
Sam Chak 2025 年 3 月 6 日
@Aidan, If it is deemed worthwhile for the MathWorks team to investigate the issue, you may take a screenshot of other z-transform problems from the textbook.

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by