Q- tracing the following code and correct the error if you found the find the output x = [4 -2 3 -7 5 -1] ; %3D for k = 1:6 y(k) = 0; for n = 1:6 y(k) = y(k)+x(n)*exp(-11*2*pi* (k-1)*(n-1)/N); end end...


Q- tracing the following code and correct<br>the error if you found the find the output<br>x = [4 -2 3 -7 5 -1] ;<br>%3D<br>for k = 1:6<br>y(k) = 0;<br>for n = 1:6<br>y(k) = y(k)+x(n)*exp(-11*2*pi* (k-1)*(n-1)/N);<br>end<br>end<br>subplot(3, 1, 1);<br>stem(y);<br>title('FFT');<br>for n = 1:5<br>x1(n) = 0;<br>for k = 1: 5<br>x1(n) =x1(n)+(1/N)*y(k)*exp(1i*2 pi (k-1) (n-1)/N);<br>end<br>end<br>subplot(3,1,2);<br>stem(x1);<br>title('IFFT');<br>

Extracted text: Q- tracing the following code and correct the error if you found the find the output x = [4 -2 3 -7 5 -1] ; %3D for k = 1:6 y(k) = 0; for n = 1:6 y(k) = y(k)+x(n)*exp(-11*2*pi* (k-1)*(n-1)/N); end end subplot(3, 1, 1); stem(y); title('FFT'); for n = 1:5 x1(n) = 0; for k = 1: 5 x1(n) =x1(n)+(1/N)*y(k)*exp(1i*2 pi (k-1) (n-1)/N); end end subplot(3,1,2); stem(x1); title('IFFT');

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here