问题描述:
求大神指点一下这个matlab程序
n=0:31;
l=0:63;
x(n)=cos(5*π*n/16);
x_32=fft(x(n),n);
x_64=fft(x(n),l);
subplot(2,1,1);
stem(n,abs(x_32),'.');
title('32dft')
subplot(2,1,2);
stem(l,abs(x_64),'.');
title('64dft')
w=[0:1:500]*pi/500;
h=freqz(x,1,n);
subplot(2,2,1)
stem(w,abs(h));
title('dtft')不知道这么回事调不出来,本人小白.感激不尽啊.
n=0:31;
l=0:63;
x(n)=cos(5*π*n/16);
x_32=fft(x(n),n);
x_64=fft(x(n),l);
subplot(2,1,1);
stem(n,abs(x_32),'.');
title('32dft')
subplot(2,1,2);
stem(l,abs(x_64),'.');
title('64dft')
w=[0:1:500]*pi/500;
h=freqz(x,1,n);
subplot(2,2,1)
stem(w,abs(h));
title('dtft')不知道这么回事调不出来,本人小白.感激不尽啊.
问题解答:
我来补答展开全文阅读