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

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site