Question: 5. Generate x[n] = 2 cos(0.2an+1), 0n 63 using x=2*cos(0.2*pi.*n+1) with n= [0:63]. Use the following MATLAB code to produce y[n] from x[n]: x1

5. Generate x[n] = 2 cos(0.2an+1), 0n  63 using

5. Generate x[n] = 2 cos(0.2an+1), 0n 63 using "x=2*cos(0.2*pi.*n+1)" with "n= [0:63]". Use the following MATLAB code to produce y[n] from x[n]: x1 [0 0 0 0 x]; x2=[0 0 0 x 0]; x3 [0 0 x 0 0]; x4 [0 x 0 0 0]; x5=[x 0 0 0 0]; y= (x1+x2+x3+x4+x5)/5; yay (1:64); plot (n,x, 'b',n, y, 'r'). legend ('x[n]', 'y[n]'); Answer the following questions: (a) Write an equation that relates [n] and y[n] for 4 n 63. (b) State two differences between [n] and y[n] for 4 n 63. (c) Try the following MATLAB code to generate [n] by passing [n] through a discrete-time system with impulse response h[n]: h=[0.2 0.2 0.2 0.2 0.2]; z=conv (h, x); z=z (1:64); By plotting [n] and y[n] together, determine if they are equal or not.

Step by Step Solution

3.42 Rating (158 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Given xn2cos02n1 for 0n63 using MATLAB code n 063 x 2 cos02 pi n 1 x1 0 0 0 0 x x2 0 0 0 x 0 x3 0 0 ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!