Here is the function x[n] :- [k coefficients, b) use MATLAB to develop a spectra
ID: 2084728 • Letter: H
Question
Here is the function x[n] :- [k coefficients, b) use MATLAB to develop a spectral plot. That is, plt s , and vsk. Identify which are the most significant frequency components that make up I. For the DT periodic signal x[n] specified in Prob. 2 of Exam #1, a) obtain the C, C,[A] ln] c) Implement in MATLAB the sum using the coefficients determined in part a) and show that the resulting signal is identical to . Plot the signal obtained from this sum for at least -3No *n*3N». d) Evaluate the power of *In] via the . Compare the analytical result with the MATLAB computationExplanation / Answer
MATLAB PROGRAM FOR THE GIVEN DT signal
%matlab DT program for the -3N<n<3N
t = -3:0.001:3;
x_i = [exp(j*2*pi*0*t/8);
exp(j*2*pi*1*t/8);
exp(j*2*pi*2*t/8);
exp(j*2*pi*3*t/8);
exp(j*2*pi*4*t/8);
exp(j*2*pi*5*t/8);
exp(j*2*pi*6*t/8)];
x = sum(x_i, 1)
subplot(2,1,1),plot(t,real(x));
xlabel('t'),ylabel('real(x(j w))');
subplot(2,1,2),plot(t,imag(x));
xlabel('t'),ylabel('image(x(j w))');
results are compared for the both real and imaginary form