该【数字信号处理数字信号处理实验 】是由【windurst】上传分享,文档一共【2】页,该文档可以免费在线阅读,需要了解更多关于【数字信号处理数字信号处理实验 】的内容,可以使用淘豆网的站内搜索功能,选择自己适合的文档,以下文字是截取该文章内的部分文字,如需要获得完整电子版,请下载此文档到您的设备,方便您编辑和打印。频谱分析matlab程序:
>>t=[*pi:*pi:*pi];
y0=sin(t);
yy1=sawtooth(t,);
y1=fft(y0);
y2=abs(y1);
figure(1);
yy2=abs(fft(yy1));
subplot(2,2,1);stem(y0,'.')
subplot(2,2,2);plot(yy1,'.')
subplot(2,2,3);plot(y2)
subplot(2,2,4);plot(yy2)
实验结果:
FIR数字滤波器的窗函数设计方法matlab程序:
>>format
echoon
wp=*pi;ws=*pi;
tr_width=ws-wp;
M=ceil(*pi/tr_width)+1;
n=[0:1:M-1];
wc=(ws+wp)/2;
hd=fir1(M,wc);
w_ham=(hamming(M+1))';
h=hd.*w_ham;
%subplot(1,1,1)
L=[0:1:M];
subplot(3,1,1);stem(L,hd,'.');title('理想脉冲响应')
axis([0M-]);xlabel('n');ylabel('hd(n)');
subplot(3,1,2);stem(L,w_ham,'.');title('汉明窗')
axis([]);xlabel('n');ylabel('w(n)')
subplot(3,1,3);stem(L,h,'.');title('实际脉冲响应')
axis([0M-]);xlabel('n');ylabel('h(n)');
pause
figure(2)
freqz(h,1,512);
实验结果:
数字信号处理数字信号处理实验 来自淘豆网m.daumloan.com转载请标明出处.