What is the output of the following code? [code]>>syms s; >> ztrans('n',s)[/code]

Khánh Đoan

New member
What is the output of the following code?
Code:
>>syms s;
>> ztrans('n',s)
A. s/(s-1)$^{2}$
B. ns/(s-1)$^{2}$
C. s/(ns-1)$^{2}$
D. Error
 
Answer: a
Explanation: The Z-transform of n*xx[n] is (-$^{z d}$⁄$_{dz}$)$^{m}$ * X(z) where X(z) is the Z transform of x[n]. Here, x[n] is unit step function whose Z-transform is z/z-1. After differentiating it and multiplying it with -z, we get s/(s-1)$^{2}$ with the variable changed to s since it has been specified in the ztrans command after the function is given as an input.
Output: s/(s-1)$^{2}$
 

Tìm kiếm

Back
Top