Implementing Unilateral Z-Transform of a^n
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Gennaro Arguzzi
le 27 Juil 2017
Réponse apportée : Star Strider
le 27 Juil 2017
Hello everyone, I wrote the following lines to implement the unilateral Z-transform of a^n:
close all
clear all
syms n a z
assume(a>0)
S=symsum(a^n*z^-n,n,0,+Inf)
the result is:
piecewise([a == z, Inf], [a ~= z, -(z - z*limit(a^n/z^n, n == Inf))/(a - z)])
The result should be z/(z-a). How can I get it?
Thank you in advance.
0 commentaires
Réponse acceptée
Star Strider
le 27 Juil 2017
It is necessary to add assumptions, then a simplify call:
syms a n z
assume(a > 0)
assumeAlso(a < 1)
assumeAlso(a < z)
S = symsum((a/z)^n, n, 0, Inf);
S = simplify(S, 'Steps',20)
S =
-z/(a - z)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Calculus dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!