已阅读5页,还剩18页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
实验二 信号的采样与重建一,实验目的(1) 通过观察采样信号的混叠现象,进一步理解奈奎斯特采样频率的意义。(2) 通过实验,了解数字信号采样转换过程中的频率特征。(3) 对实际的 音频文件作内插和抽取操作,体会低通滤波器在内插和抽取中的作用。二,实验内容(1) 采样混叠,对一个模拟信号Va(t)进行等间采样,采样频率为200HZ,得到离散时间信号V(n).Va(t)由频率为30Hz,150Hz,170Hz,250Hz,330Hz的5个正弦信号的加权和构成。Va(t)=6cos(60pi*t)+3sin(300pi*t)+2cos(340pi*t)+4cos(500pi*t)+10sin(660pi*t)观察采样后信号的混叠效应。程序:clear,close all,t=0:0.1:20;Ts=1/2;n=0:Ts:20;V=8*cos(0.3*pi*t)+5*cos(0.5*pi*t+0.6435)-10*sin(0.7*pi*t);Vn=8*cos(0.3*pi*n)+5*cos(0.5*pi*n+0.6435)-10*sin(0.7*pi*n);subplot(221)plot(t,V),grid on,subplot(222)stem(n,Vn,.),grid on,(2) 输入信号X(n)为归一化频率f1=0.043,f2=0.31的两个正弦信号相加而成,N=100,按因子M=2作抽取:(1)不适用低通滤波器;(2)使用低通滤波器。分别显示输入输出序列在时域和频域中的特性。程序:clear;N=100;M=2;f1=0.043;f2=0.31;n=0:N-1;x=sin(2*pi*f1*n)+sin(2*pi*f2*n);y1=x(1:2:100);y2=decimate(x,M,fir);figure(1);stem(n,x(1:N);title(input sequence);xlabel(n);ylabel(fudu);figure(2);n=0:N/2-1;stem(n,y1);title(output sequence without LP);xlabel(n);ylabel(fudu);figure(3);m=0:N/M-1;stem(m,y2(1:N/M);title(output sequence with LP);xlabel(n);ylabel(fudu);figure(4);h,w=freqz(x);plot(w(1:512),abs(h(1:512);title(frequency spectrum of the input sequence);xlabel(w);ylabel(fudu);figure(5);h,w=freqz(y1);plot(w(1:512),abs(h(1:512);title(frequency spectrum of the output sequence without LP);xlabel(w);ylabel(fudu);figure(6);h,w=freqz(y2);plot(w(1:512),abs(h(1:512);title(frequency spectrum of the output sequence without LP);xlabel(w);ylabel(fudu);(3) 输入信号X(n)为归一化频率f1=0.043,f2=0.31的两个正弦信号相加而成,长度N=50,内插因子为2.(1)不适用低通滤波器;(2)使用低通滤波器。分别显示输入输出序列在时域和频域中的特性。程序:clear,close all,N=50;L=2;f1=0.043;f2=0.31;n=0:N-1;x=sin(2*pi*f1*n)+sin(2*pi*f2*n);figure(1);stem(n,x(1:N);title(input sequence);xlabel(n);ylabel(fudu);y1=zeros(1,N*2);y1(1:2:N*2)=x;figure(2);m=0:N*L-1;stem(m,y1(1:N*L);title(output sequence );xlabel(n);ylabel(fudu);y2=interp(x,L);figure(3);m=0:N*L-1;stem(m,y2(1:N*L);title(output sequence);xlabel(n);ylabel(fudu);figure(4);h,w=freqz(x);plot(w(1:512),abs(h(1:512);title(frequency spectrum of the input sequence);xlabel(w);ylabel(fudu);figure(5);h,w=freqz(y1);plot(w(1:512),abs(h(1:512);title(frequency spectrum of the output sequence);xlabel(w);ylabel(fudu);figure(6);h,w=freqz(y2);plot(w(1:512),abs(h(1:512);title(frequency spectrum of the output sequence );xlabel(w);ylabel(fudu);2 (3)令x(n)=cos(2*pi*f*n/fs),其中f/fs=1/16,即每个周期内有16个点。试用MATLAB编程实现:1).作M=4倍的抽取,使每个周期变成4点。程序:clear,close all,N=100;M=4;n=0:N-1;x=cos(2*pi*n*(1/16);stem(n,x(1:N);title(input sequence);xlabel(n);ylabel(fudu);y1=x(1:4:100);y2=decimate(x,M,fir);figure(2);m=0:N/4-1;stem(m,y1); title(output sequence );xlabel(n);ylabel(fudu);figure(3);m=0:N/M-1;stem(m,y2(1:N/M);title(output sequence);xlabel(n);ylabel(fudu);figure(4);h,w=freqz(x);plot(w(1:512),abs(h(1:512);title(frequency spectrum of the input sequence);xlabel(w);ylabel(fudu);figure(5);h,w=freqz(y1);plot(w(1:512),abs(h(1:512);title(frequency spectrum of the output sequence);xlabel(w);ylabel(fudu);figure(6);h,w=freqz(y2);plot(w(1:512),abs(h(1:512);title(frequency spectrum of the output sequence );xlabel(w);ylabel(fudu);2) .作L=3倍的插值,使每个周期变成48点。程序:clear,close all,N=50;L=3;n=0:N-1;x=cos(2*pi*n*(1/16);figure(1);stem(n,x(1:N);title(input sequence);xlabel(n);ylabel(fudu);y1=zeros(1,N*3);y1(1:3:N*3)=x;figure(2);m=0:N*3-1;stem(m,y1(1:N*3);title(output sequence );xlabel(n);ylabel(fudu);y2=interp(x,L);figure(3);m=0:5:N*L-1;stem(m,y2(1:5:N*L);title(output sequence);xlabel(n);ylabel(fudu);figure(4);h,w=freqz(x);plot(w(1:512),abs(h(1:512);title(frequency spectrum of the input sequence);xlabel(w);ylabel(fudu);figure(5);h,w=freqz(y1);plot(w(1:512),abs(h(1:512);title(frequency spectrum of the output sequence);xlabel(w);ylabel(fudu);figure(6);h,w=freqz(y2);plot(w(1:64),abs(h(1:64);title(frequency spectrum of the output sequence );xlabel(w);ylabel(fudu);(4) .输入信号x(n)为归一化频率分别是f1=0.04,f2=0.3的正弦信号相加而成,N=50,内插因子为5,抽取因子为3,给出按有理因子5/3做采样率转换的输入输出波形。程序:clear,close all,N=50;M=3;L=5;f1=0.04;f2=0.3;n=0:N-1;x=sin(2*pi*f1*n)+sin(2*pi*f2*n);y=resample(x,L,M);figure(1);stem(n,x(1:N);title(input sequence);xlabel(n);ylabel(fudu);figure(2);m=0:N-1;stem(m,y(1:N); title(output sequence );xlabel(n);ylabel(fudu);figure(3);h,w=freqz(x);plot(
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025黑龙江绥化市海伦市招聘社区工作者10人备考题库含答案详解(能力提升)
- 2025年甘肃省武威市古浪县古浪镇招聘大学生村文书备考题库含答案详解(综合题)
- 设计美学自考考试题型及答案
- 色彩自考考试题库及答案
- 北京邮电大学2025年通信工程(5G技术)研究生新生选拔试题及答案
- 2025年心理咨询题目试卷及答案
- 财经知识竞赛题库及答案
- 中国包装行业数字化转型典型案例与实施难点解析
- 农民技术培训资源共享协议
- 2025智慧工地行业市场深度调研及发展潜力与投资规划研究报告
- 拖欠工程款上访信范文
- 【化 学】第六单元 碳和碳的氧化物单元试题卷-2024-2025学年九年级化学人教版(2024)上册
- 2024年碳纤维增强尼龙项目可行性研究报告
- 护理实习生的职业规划
- 【MOOC】数学文化十讲-南开大学 中国大学慕课MOOC答案
- 体育场馆跑道草坪改造及保养方案
- 种植烟叶采购合同模板
- 1.4.3 戴维南定理讲解
- 二年级乘除法口算题计算练习大全2000题(可直接打印)
- 洗浴中心储值卡会员规则
- 专业路灯计算书(带公式)
评论
0/150
提交评论