Effacer les filtres
Effacer les filtres

Inverse Z-Transform of z/(z-a) - Strange result

6 vues (au cours des 30 derniers jours)
Gennaro Arguzzi
Gennaro Arguzzi le 26 Juil 2017
Commenté : fadli yusuf le 23 Déc 2020
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 commentaire
Karan Gill
Karan Gill le 26 Juil 2017
To add to Star Strider's answer below, your result contains the piecewise function. See that doc page for more info.

Connectez-vous pour commenter.

Réponse acceptée

Star Strider
Star Strider le 26 Juil 2017
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

Plus de réponses (1)

Arthur Ngnepiepaye
Arthur Ngnepiepaye le 6 Nov 2020
Can someone help me out plotting this zero input response? It's confusing
  1 commentaire
Star Strider
Star Strider le 6 Nov 2020
Post this as a new Question.

Connectez-vous pour commenter.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by