MATLAB实验二。.docVIP

  • 14
  • 0
  • 约6.47千字
  • 约 12页
  • 2017-11-10 发布于江苏
  • 举报
MATLAB实验二。

实验报告 第二题: 一:实验题目: It is desired to extract a constant signal x (n)=s(n)+ν(n)=s+ ν (n),where ν(n) is zero-mean white Caussian noise of varianceбv2 . (1) First-order IIR smoother; To this end, the following IIR lowpass filter is used:, where the parameter a is restrict to the range 0a1.This can be achieve in two ways. (2) FIR averaging filters: Consider ,for example, the third-order filter H(z)=h0+h1z-1+h2z-2+h3z-3.(提示:当h0,h1,h2,h3四个系数相等时,其噪声抑制效果最佳). 二:实验目的: (1)进一步加深对卷积定理和采样定理的理解。 (2)了解滤波器的工作原理和设计方法。 (3)学习用滤波器的方法把信号从噪声中滤出来, 三:实验原理: 时域中y(n)=x(n)*h(n),而频域中Y(Z)=X(Z)·H(Z),而对于随机信号而言,其频谱复杂,因此利用时域卷积来计算较为简单。 四:实验步骤简述: 生成直流信号。 生成噪声信号。 确定系数。 对h和x进行卷积。 输出图形。 五:程序框图: 六: 源程序1: clear all; N=50; s=6*ones(1,N); subplot(311),plot(s); xlabel(t); ylabel(直流信号); v=randn(1,N); x=s+v; subplot(312),plot(x);xlabel(t);ylabel(加噪信号); b=1; a=0.8; n=1:50; u(n)=ones(1,N); h(n)=b*(a.^n).*u(n); y=conv(h(n),x); subplot(313),plot(y);xlabel(t);ylabel(滤波后的信号); 源程序2: close all; clear all; N=50; s=6*ones(1,N); subplot(311),plot(s); xlabel(t); ylabel(直流信号); v=randn(1,N); x=s+v; subplot(312),plot(x); xlabel(t); ylabel(加噪信号); h=[0.5 0.5 0.5 0.5]; y=conv(x,h); subplot(313),plot(y); xlabel(t); ylabel(输出结果); 七:1。程序1结果及图表: (1)a=0.55; (2)a=0.8。 2.程序2结果及图表: (1)h=[0.4 0.1 0.2 0.3]。 (2)h=[0.4 0.4 0.4 0.4]时: 八:实验总结 通过本次试验,比较形象描述了无限和有限两种滤波器的功能以及两种滤波器效果的比较。本实验是通过两种滤波器的传输函数来进行计算卷积,比较详细的指出了滤波器的本质,即其运算原理。这使我深刻的了解到一个加噪信号通过滤波器后的变化过程。并且通过滤波器系数的变化来了解滤波器其自身性能,对于以后运用滤波器进行滤时对滤波器的选择问题有了初步的体会。 第四题 一:实验题目 Using the bilinear transformation and a lowpass analog Butterworth prototype, design a highpass digital filter operating at a rate of 20kHz and having passband extending to 5kHz with maximum passband attenuation of 0.5dB,and stopband ending at 4kHz with a minimum stopband attenuation of 10dB. 二:实验目的 进一步加深对用双线形变换法设计数字高通滤波器的理解。 学会利用低通滤波器设计高通滤波器。 熟练掌握低通滤波器的设计方法。 进一步熟悉MATLAB提供的各种设计滤波器函数。 三:实验原理 双线形变换法是利用s=2*(1-z-1)/T*(1+z-1)将s域转换到z域,从而得到系统函数H(Z)。由于巴特沃斯低通滤波器和高通滤波器只有在归一化频率时和去归一化时关系式互为倒数,因此只要在这两处变换系数,就可以利用

文档评论(0)

1亿VIP精品文档

相关文档