Using Matlab A signal is defined by xn sincn8 Graph the mag
Using Matlab.
A signal is defined by x[n] = sinc(n/8). Graph the magnitude and phase of the DTFT of x[n -2].Solution
Sinc(n/8)= Sin(pi*(n/8)/pi*(n/8));
N=100 000;
dtft=N.*sinc(w.*N./2./pi)./(sinc(w./2./pi)).*exp(- j.*w.*(N-1)./2); %define DTFT function
subplot(2,1,1)
Mag=abs(dtft); %compute magnitude plot
(w./pi,Mag); %plot magnitude subplot(2,1,2)
Pha=angle(dtft); %compute phase plot
(w./pi,Pha); %plot phase
![Using Matlab. A signal is defined by x[n] = sinc(n/8). Graph the magnitude and phase of the DTFT of x[n -2].SolutionSinc(n/8)= Sin(pi*(n/8)/pi*(n/8)); N=100 000 Using Matlab. A signal is defined by x[n] = sinc(n/8). Graph the magnitude and phase of the DTFT of x[n -2].SolutionSinc(n/8)= Sin(pi*(n/8)/pi*(n/8)); N=100 000](/WebImages/20/using-matlab-a-signal-is-defined-by-xn-sincn8-graph-the-mag-1044776-1761543292-0.webp)
