can any one tell me how to find z transform of unit step??
Show older comments
i have tried but ans isn't correct... like a=heaviside(n) ztrans(a) ans =
1/(z - 1) + 1/2
why 1/2 ???? plz help me out
Accepted Answer
More Answers (1)
Azzi Abdelmalek
on 22 Oct 2014
Edited: Azzi Abdelmalek
on 22 Oct 2014
That depends on how the function heaviside is defined. In Matlab heaviside is defined as
f[n]=0 if n<0
f(0)=1/2
f(n)=1 if n>0
In your case, your function is maybe defined as
f(n)=0 if n<0
f(n)=1 if n>=0
what you need to do is
syms n
a=heaviside(n)+0.5*kroneckerDelta(n)
out=ztrans(a)
3 Comments
Asia khan
on 22 Oct 2014
Asia khan
on 22 Oct 2014
Ced
on 22 Oct 2014
The kronecker delta in this form is a function which has
kroneckerDelta(n) = 1 for n = 0
kroneckerDelta(n) = 0 for all other n
Since the problem is that heaviside is 0.5 at n = 0 instead of 1, Azzi Abdelmalek adds 0.5*kroneckerDelta(n), which is only nonzero at n = 0, and therefore "fixes" heaviside.
Categories
Find more on Resizing and Reshaping Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!