Given that the Z-transform of a discrete-time cosine A cos(Ï 0 n) u[n] is (a) Use the

Question:

Given that the Z-transform of  a discrete-time cosine A cos(ω0n) u[n] is

A(1 – cos(@o)z¯') -2 1– 2 cos(@o)z'+z¯

(a) Use the given Z-transform to find a difference equation whose output y[n] is a discrete-time cosine A cos(ω0 n) and input x[n] = δ[n]. What should you use as initial conditions?

(b) Verify your algorithm by generating a signal  y[n] = 2 cos(Ï€n/2) u[n] by implementing your algorithm in  MATLAB. Plot the input and the output signals x[n] and y[n].

(c) Indicate how to change your previous algorithm to generate a  sine function y[n] = 2 sin(Ï€n/2) u[n]. Use MATLAB to find y[n],  and to plot it.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: