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 Kommentare

Paul
Paul am 4 Mär. 2025
Assuming the inv(z) to the left of the bracketed expression means "inverse z-transform", I don't see how the expression from the textbook could be correct. Even if there is typo and the denominator should be (z+1)^2, it's still incorrect (missing negative sign).
Aidan
Aidan am 4 Mär. 2025
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 am 4 Mär. 2025
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.

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Sam Chak
Sam Chak am 4 Mär. 2025

0 Stimmen

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 Kommentare

Aidan
Aidan am 4 Mär. 2025
I went back and tested more problems in the book, non of the answers match what the function returns ;--;
Sam Chak
Sam Chak am 6 Mär. 2025
@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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Gefragt:

am 4 Mär. 2025

Kommentiert:

am 6 Mär. 2025

Community Treasure Hunt

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

Start Hunting!

Translated by