Write a MATLAB code to compute and plot the DTFS coefficient
Write a MATLAB code to compute and plot the DTFS coefficients of
Solution
%let find the signal fo 64 sequence
 N=64;
 n=0:1:N-1;
 x=1-cos(3*pi*n/8);
 for k=0:1:N-1
 for i=1:1:N
 a(k+1)=(1/N)*x(i)*exp(-1i*2*pi*k*(i-1)/N);
 end
 end
 stem(n,abs(a));
 xlabel(\'k\');
 title(\'Magnitude of DTFS coeffiecient\');

