Professional Documents
Culture Documents
x = [1/3,1/3,1/3, zeros(1,5)];
N=8;
X=dft(x,N);
magX=abs(X), phaX=angle(X)*180/pi
subplot(211); stem (magX); title('Magnitude of
the DFT: N=8')
xlabel('k');ylabel ('|X(k)|')
subplot(212); stem (phaX); title('Angle of the
DFT: N=8')
xlabel('k');ylabel ('Degrees|')