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

下载本文档

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

文档简介

信号处理实验三信号处理实验三 实验要求 研究抽样过程 分析产生混叠效应的原因 实现不同的重建方案 3 3 1 n 0 80 f0 300 fs 8000 x sin 2 pi f0 fs n pi 3 stem n x gtext f0 300 fs 8k plot n x gtext f0 300 fs 8k gtext Continue b n 0 80 fs 8000 subplot 221 x sin 2 pi 100 fs n pi 3 stem n x grid gtext f0 100 subplot 222 x sin 2 pi 225 fs n pi 3 stem n x grid gtext f0 225 subplot 223 stem n x grid gtext f0 350 subplot 224 x sin 2 pi 225 fs n pi 3 stem n x grid gtext f0 475 d n 0 80 fs 8000 subplot 221 x sin 2 pi 7525 fs n pi 3 stem n x grid gtext f0 7525 subplot 222 x sin 2 pi 7650 fs n pi 3 stem n x grid gtext f0 7650 subplot 223 x sin 2 pi 7775 fs n pi 3 stem n x grid gtext f0 7675 subplot 224 x sin 2 pi 7900 fs n pi 3 stem n x grid gtext f0 7900 e n 0 80 fs 8000 subplot 221 x sin 2 pi 32100 fs n pi 3 stem n x grid gtext f0 32100 subplot 222 x sin 2 pi 32225 fs n pi 3 stem n x grid gtext f0 32225 subplot 223 x sin 2 pi 32350 fs n pi 3 stem n x grid gtext f0 32350 subplot 224 x sin 2 pi 32475 fs n pi 3 stem n x grid gtext f0 32475 t 0 1 80000 1000 80000 x cos 2 pi 300 t pi 6 stem t x t 0 1 8000 1000 80000 x cos 2 pi 300 t pi 6 stem t x fmagplot x 1 80000 可以看到 当频率变化时 正弦信号并不是严格按信号频率变化的 而是呈周 期的 有时变密有时变疏 3 3 3 t 0 1 80000 1000 80000 x cos 2 pi 300 t pi 6 stem t x t 0 1 8000 1000 80000 x cos 2 pi 300 t pi 6 stem t x fmagplot x 1 80000 3 3 4 n 0 100 t n 80000 x cos 2 pi t 300 pi 6 stem t 10 x X W dtft x 900 plot W 10 pi abs X 3 3 5 fs 8000 fsim 80000 fcut 2 fs 2 fsim b a cheby2 9 60 fcut 调用雪比滤波器 c d freqz b a 1000 whole 1000 点的频率响应 d 501 1000 d 501 1000 2 pi d 的位置全部左移 2pi plot d 2 pi 1000 fsim abs c 3 3 6 fs 8000 fsim 80000 n 0 1000 l length n x cos 2 pi 300 n fsim pi 6 y x 1 80000 8000 l L length y 取长度避免后面的维度不相等 y2 zeros 1 length x 置零序列 for i 0 100 y2 i 10 1 y i 1 取 10 倍数中的数 相当于抽样置零 end t 0 0 001 1 plot t y2 fmagplot y2 0 0000125 3 3 7 fs 8000 fsim 80000 k fsim fs n 0 1000 l length n x cos 2 pi 2000 n fsim pi 6 y x 1 k l L length y y2 zeros 1 length x for i 0 100 y2 i 10 1 y i 1 end t 0 0 001 1 y3 filter b a y2 subplot 211 fmagplot y3 0 0000125 subplot 212 plot t y3 gtext 2k fs 8000 fsim 80000 k fsim fs n 0 1000 l length n x cos 2 pi 6000 n fsim pi 6 y x 1 k l L length y y2 zeros 1 length x for i 0 100 y2 i 10 1 y i 1 end t 0 0 001 1 y3 filter b a y2 subplot 211 fmagplot y3 0 0000125 subplot 212 plot t y3 gtext 6k x cos 2 pi 7000 n fsim pi 6 y x 1 k l L length y y2 zeros 1 length x for i 0 100 y2 i 10 1 y i 1 end t 0 0 001 1 y3 filter b a y2 subplot 211 fmagplot y3 0 0000125 subplot 212 plot t y3 gtext 7k x cos 2 pi 9000 n fsim pi 6 y x 1 k l L length y y2 zeros 1 length x for i 0 100 y2 i 10 1 y i 1 end t 0 0 001 1 y3 filter b a y2 subplot 211 fmagplot y3 0 0000125 subplot 212 plot t y3 gtext 9k x cos 2 pi 10000 n fsim pi 6 y x 1 k l L length y y2 zeros 1 length x for i 0 100 y2 i 10 1 y i 1 end t 0 0 001 1 y3 filter b a y2 subplot 211 fmagplot y3 0 0000125 subplot 212 plot t y3 gtext 10k x cos 2 pi 15000 n fsim pi 6 y x 1 k l L length y y2 zeros 1 length x for i 0 100 y2 i 10 1 y i 1 end t 0 0 001 1 y3 filter b a y2 subplot 211 fmagplot y3 0 0000125 subplot 212 plot t y3 gtext 15k x cos 2 pi 17000 n fsim pi 6 y x 1 k l L length y y2 zeros 1 length x for i 0 100 y2 i 10 1 y i 1 end t 0 0 001 1 y3 filter b a y2 subplot 211 fmagplot y3 0 0000125 subplot 212 plot t y3 gtext 17k x cos 2 pi 18000 n fsim pi 6 y x 1 k l L length y y2 zeros 1 length x for i 0 100 y2 i 10 1 y i 1 end t 0 0 001 1 y3 filter b a y2 subplot 211 fmagplot y3 0 0000125 subplot 212 plot t y3 gtext 18k x cos 2 pi 19000 n fsim pi 6 y x 1 k l L length y y2 zeros 1 length x for i 0 100 y2 i 10 1 y i 1 end t 0 0 001 1 y3 filter b a y2 subplot 211 fmagplot y3 0 0000125 subplot 212 plot t y3 gtext 19k x cos 2 pi 20000 n fsim pi 6 y x 1 k l L length y y2 zeros 1 length x for

温馨提示

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

评论

0/150

提交评论