From: alex lunax on
Hi, i've a problem using matlab (i'm really new)

I'm trying to resolve some ztrans but ztrans return an expression for bilateral Z In some case like a^(k-1) the expression is really different from unilateral which i want. For example

f =2^(k-1)

>> pretty(simplify(ztrans(f)))
z
1/2 -----
z - 2

but using right translation theorem + unilater:

f(z-1)=(1/z)* f(z)
f(z)= z/ (z-2)

finally
correct answer=( 1/(z-2) );

So i thin i can't understood something and i think that ztrans(f) give me the expression for the "negative" part which is bilateral. How can i tell to ztrans to give me answer for k>=0 ?

Thx