哈工程信号处理实验5_第1页
哈工程信号处理实验5_第2页
哈工程信号处理实验5_第3页
哈工程信号处理实验5_第4页
哈工程信号处理实验5_第5页
已阅读5页,还剩12页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

信号处理实验五信号处理实验五 一 实验要求 研究不同类型的窗函数 研究一些不同的方法来测试窗的性能 专注于有 关窄带信号的几个不同的情形 二 实验原理 信号是无限长的 而在进行信号处理时只能采用有限长信号 所以需要将 窄带信号 截断 在信号处理中 截断 被看成是用一个有限长的 窗口 看无限长的信倍号 或者从分析的角度是无限长的信号 x t 乘以有限长的窗函 数 w t 由傅立叶变换性质可知 x t w t 1 2pi X jw W jw 如果 x t 是频带有限信号 而 w t 是频带无限函数 截断后的信号也必是频带 无限信号 从而产生所谓的频谱泄露 频谱泄露是不可避免的 但是尽量减小 因此设计了不同的窗函数满足不同的要求 从能量的角度 频谱泄露也是能 量泄露 因为加窗后 是原来的信号集中在宅频带内的能量分散到无限的频带 范围 三 实验内容 1 n 0 99 w boxcar 100 stem n w w hanning 100 stem n w w hamming 100 stem n w w bartlett 100 stem n w w blackman 100 stem n w w triang 100 stem n w w kaiser 100 stem n w w chebwin 100 18 stem n w 得到以下窗函数图像 2 w boxcar 100 X W dtft w 1000 L length X n 0 L 1 plot n abs X xlabel n ylabel X k gtext 矩形窗 w hanning 100 X W dtft w 1000 L length X n 0 L 1 plot n abs X xlabel n ylabel X k gtext Hanning w hamming 100 X W dtft w 1000 L length X n 0 L 1 plot n abs X xlabel n ylabel X k gtext Hamming w bartlett 100 X W dtft w 1000 L length X n 0 L 1 plot n abs X xlabel n ylabel X k gtext Bartlett w blackman 100 X W dtft w 1000 L length X n 0 L 1 plot n abs X xlabel n ylabel X k gtext Blackman w triang 100 X W dtft w 1000 L length X n 0 L 1 plot n abs X xlabel n ylabel X k gtext Triang w kaiser 100 X W dtft w 1000 L length X n 0 L 1 plot n abs X xlabel n ylabel X k gtext Kaiser w chebwin 100 18 X W dtft w 1000 L length X n 0 L 1 plot n abs X xlabel n ylabel X k gtext Chebwin 3 w boxcar 10 X W dtft w 1000 subplot 221 plot abs W pi 2 20 log abs X 取模值是要使只显示正的频 Warning Log of zero 率 因此不用移位 w boxcar 20 X W dtft w 1000 subplot 222 plot abs W pi 2 20 log abs X Warning Log of zero w boxcar 30 X W dtft w 1000 subplot 223 plot abs W pi 2 20 log abs X Warning Log of zero w boxcar 40 X W dtft w 1000 subplot 224 plot abs W pi 2 20 log abs X Warning Log of zero w boxcar 40 X W dtft w 1225 subplot 224 plot abs W pi 2 20 log abs X Warning Log of zero 4 0 9 倍 T f pi 25 16 n 0 57 t n 25 x 0 75 3 4 cos 2 f t 2 7 cos 4 f t 1 5 sin 3 5 f t 2 5 sin 7 f t w boxcar 58 y w x X W dtft y 1000 plot W pi 2 abs X xlabel W ylabel X k gtext 矩形窗 f pi 25 16 n 0 57 t n 25 x 0 75 3 4 cos 2 f t 2 7 cos 4 f t 1 5 sin 3 5 f t 2 5 sin 7 f t w hanning 58 y w x X W dtft y 1000 plot W pi 2 abs X xlabel W ylabel X k gtext Hanning f pi 25 16 n 0 57 t n 25 x 0 75 3 4 cos 2 f t 2 7 cos 4 f t 1 5 sin 3 5 f t 2 5 sin 7 f t w hamming 58 y w x X W dtft y 1000 plot W pi 2 abs X xlabel W ylabel X k gtext Hamming f pi 25 16 n 0 57 t n 25 x 0 75 3 4 cos 2 f t 2 7 cos 4 f t 1 5 sin 3 5 f t 2 5 sin 7 f t w bartlett 58 y w x X W dtft y 1000 plot W pi 2 abs X xlabel W ylabel X k gtext Bartlett f pi 25 16 n 0 57 t n 25 x 0 75 3 4 cos 2 f t 2 7 cos 4 f t 1 5 sin 3 5 f t 2 5 sin 7 f t w blackman 58 y w x X W dtft y 1000 plot W pi 2 abs X xlabel W ylabel X k gtext Blackman f pi 25 16 n 0 57 t n 25 x 0 75 3 4 cos 2 f t 2 7 cos 4 f t 1 5 sin 3 5 f t 2 5 sin 7 f t w triang 58 y w x X W dtft y 1000 plot W pi 2 abs X xlabel W ylabel X k gtext Triang f pi 25 16 n 0 57 t n 25 x 0 75 3 4 cos 2 f t 2 7 cos 4 f t 1 5 sin 3 5 f t 2 5 sin 7 f t w kaiser 58 y w x X W dtft y 1000 plot W pi 2 abs X xlabel W ylabel X k gtext Kaiser f pi 25 16 n 0 57 t n 25 x 0 75 3 4 cos 2 f t 2 7 cos 4 f t 1 5 sin 3 5 f t 2 5 sin 7 f t w chebwin 58 18 y w x X W dtft y 1000 plot W pi 2 abs X xlabel W ylabel X k gtext Chebwin 以下取的是 1 1T 的值 f pi 25 16 n 0 69 t n 25 x 0 75 3 4 cos 2 f t 2 7 cos 4 f t 1 5 sin 3 5 f t 2 5 sin 7 f t w boxcar 70 y w x X W dtft y 1000 plot W pi 2 abs X xlabel W ylabel X k gtext 矩形窗 1 1T f pi 25 16 n 0 69 t n 25 x 0 75 3 4 cos 2 f t 2 7 cos 4 f t 1 5 sin 3 5 f t 2 5 sin 7 f t w hanning 70 y w x X W dtft y 1000 plot W pi 2 abs X xlabel W ylabel X k gtext Hanning 1 1T f pi 25 16 n 0 69 t n 25 x 0 75 3 4 cos 2 f t 2 7 cos 4 f t 1 5 sin 3 5 f t 2 5 sin 7 f t w hamming 70 y w x X W dtft y 1000 plot W pi 2 abs X xlabel W ylabel X k gtext Hamming 1 1T f pi 25 16 n 0 69 t n 25 x 0 75 3 4 cos 2 f t 2 7 cos 4 f t 1 5 sin 3 5 f t 2 5 sin 7 f t w bartlett 70 y w x X W dtft y 1000 plot W pi 2 abs X xlabel W ylabel X k gtext Bartlett 1 1T f pi 25 16 n 0 69 t n 25 x 0 75 3 4 cos 2 f t 2 7 cos 4 f t 1 5 sin 3 5 f t 2 5 sin 7 f t w blackman 70 y w x X W dtft y 1000 plot W pi 2 abs X xlabel W ylabel X k gtext Blackman 1 1T f pi 25 16 n 0 69 t n 25 x 0 75 3 4 cos 2 f t 2 7 cos 4 f t 1 5 sin 3 5 f t 2 5 sin 7 f t w triang 70 y w x X W dtft y 1000 plot W pi 2 abs X xlabel W ylabel X k gtext Triang 1 1T f pi 25 16 n 0 69 t n 25 x 0 75 3 4 cos 2 f t 2 7 cos 4 f t 1 5 sin 3 5 f t 2 5 sin 7 f t w kaiser 70 y w x X W dtft y 1000 plot

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论