求大神指点一下这个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);sub
来源:学生作业帮助网 编辑:作业帮 时间:2024/12/01 01:20:54
求大神指点一下这个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);sub
求大神指点一下这个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')不知道这么回事调不出来,本人小白.感激不尽啊.
求大神指点一下这个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);sub
n=0:31;
l=0:63;
x=cos(5*pi*n/16);
x_32=fft(x,32);
x_64=fft(x,64);
subplot(3,1,1);
stem(n,abs(x_32),'.');
title('32dft')
subplot(3,1,2);
stem(l,abs(x_64),'.');
title('64dft')
w=[0:1:31]*pi/31;
h=freqz(x,1,n);
subplot(3,1,3)
stem(w,abs(h));
title('dtft')