z-transform of unit step function?
Ältere Kommentare anzeigen
i have this n-domain function H[n]= (0.5^n)*u[n] and i need to find z transformation of this function. i've tried this one:
>> syms n z
>> y = ((0.5)^n)*heaviside(n);
>> yz = ztrans (y,n,z)
yz =
1/(2*z - 1) + 1/2
isn't supposed to be 1/(-0.5^z-1)+1 ? is there any solution to solve this z transform?
1 Kommentar
syms a n f
n = 0;
f = a^n
ztrans(f)
Akzeptierte Antwort
Weitere Antworten (2)
Amine BENZOUBIR
am 22 Okt. 2019
use this commande to change the origine to 1
v=1;
sympref('HeavisideAtOrigin', v);
1 Kommentar
Nour
am 12 Nov. 2024
Thanks!
Azzi Abdelmalek
am 27 Mai 2014
Bearbeitet: Azzi Abdelmalek
am 27 Mai 2014
The heaveaside function of Matlab is defined with heaviside(0) equal to 0.5
If you look at the table using another definition of heaviside (e(0)=1), you will find the z-transform of a^n is z/(z-a) . The heaviside defined in Matlab can be written as
heaviside(n)=e(n)-delta(n) (delta is Kronecker function), the z-transform is z/(z-a)-0.5
In your case replace a by 0.5
1 Kommentar
Diamond
am 27 Mai 2014
Kategorien
Mehr zu z-transforms finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!