How to take the z transform of a delayed unit step using ztrans?

To simplify what I want to do say I need to take the z transform of a delayed unit step. In my professors notes the following was done for the unit step:
syms k
ek=1^k;
Ez=ztrans(ek)
Ez =
z/(z - 1)
The result is what is expected. So how would you define ek for a delayed unit step? For example let's say I want the z transform of u(k-2).
Thanks!

Answers (1)

%heavyside(0)=1/2 not 1
It's like you have step(k)+0.5*kronecker(k) then it's z transform will be
z/(z-1)+1/2

3 Comments

Thanks for clearing up the heaviside function. I still don't know how to take the z transform of a delayed unit step though. I will revise my question
1^k is not a step function, it's constant
Asia Khan commented
I have the same query?? How to take the z transform of a delayed unit step using ztrans???? please tell me??

Sign in to comment.

Categories

Find more on Programming in Help Center and File Exchange

Products

Asked:

on 5 Sep 2013

Commented:

on 8 Nov 2014

Community Treasure Hunt

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

Start Hunting!