Reputation: 137
I plotted the responses of two difference equation obtained from a Z transform transfer function. I used two methods and get two different results. Why?
tf = y(output)/u(input) = z/ (z^2 - 3z + 3)
Method 1, using Matlab, taking the inverse Z transform
tf_difference = iztrans(tf, z, k);
yields: y = 2^k - 1, for timesteps 'k'. This is an exponential.
Method 2, algebraic rearranging by hand, turning z^n into (k-n):
y(k+2) = 3y(k+1) - 3y(k) + u(k+1)
or equivalently
y(k+1) = 3y(k) - 3y(k-1) + u(k)
Also, for the second method, i need to specify a 'u', whereas in the first method that's not needed, only k is needed. Why does the first method not need an input signal u, only a time step?
Upvotes: 1
Views: 4258