已阅读5页,还剩1页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
实 验 报 告专业班级 电科* 姓名 * 学号 20084836* 实验日期 2010 年 11 月 29 日实验名称 离散时间系统的时域分析 一、 实验目的:在时域中,离散时间系统对输入信号或者延迟信号进行简单运算处理,生成具有所需特性的输出信号,通过MATLAB仿真一些简单的离散时间系统,并研究它们的时域特性。本次实验目的是验证系统的线性与时不变性,以及计算线性时不变系统的冲激响应,用系统的冲激响应与给定的有限长输入序列进行卷积得到有限冲激响应系统的输出序列。二、实验内容:1.线性系统的特性验证程序如下:% Program P2_3% Generate the input sequencesclf;n = 0:40;a = 4;b = -6;x1 = cos(2*pi*0.2*n);x2 = cos(2*pi*0.8*n);x = a*x1 + b*x2;num = 2.2403 2.4908 2.2403;den = 1 -0.4 0.75;ic = 0 0; % Set zero initial conditionsy1 = filter(num,den,x1,ic); % Compute the output y1ny2 = filter(num,den,x2,ic); % Compute the output y2ny = filter(num,den,x,ic); % Compute the output ynyt = a*y1 + b*y2; d = y - yt; % Compute the difference output dn% Plot the outputs and the difference signalsubplot(3,1,1)stem(n,y);ylabel(Amplitude);title(Output Due to Weighted Input: a cdot x_1n + b cdot x_2n);subplot(3,1,2)stem(n,yt);ylabel(Amplitude);title(Weighted Output: a cdot y_1n + b cdot y_2n);subplot(3,1,3)stem(n,d);xlabel(Time index n);ylabel(Amplitude);title(Difference Signal);运行结果:2.时不变系统的特性验证(1)D=15 w1=0.1*2pi w2=0.4*2pi程序如下:% Program P2_4-1% Generate the input sequencesclf;n = 0:40; D = 15;a = 3.0;b = -2;x = a*cos(2*pi*0.1*n) + b*cos(2*pi*0.4*n);xd = zeros(1,D) x;num = 2.2403 2.4908 2.2403;den = 1 -0.4 0.75;ic = 0 0; % Set initial conditions% Compute the output yny = filter(num,den,x,ic);% Compute the output ydnyd = filter(num,den,xd,ic);% Compute the difference output dnd = y - yd(1+D:41+D);% Plot the outputssubplot(3,1,1)stem(n,y);ylabel(Amplitude); title(Output yn); grid;subplot(3,1,2)stem(n,yd(1:41);ylabel(Amplitude);title(Output due to Delayed Input xn -, num2str(D),); grid;subplot(3,1,3)stem(n,d);xlabel(Time index n); ylabel(Amplitude);title(Difference Signal); grid;运行结果:(2)D=10 w1=0.2*2pi w2=0.8*2pi程序如下:% Program P2_4-1% Generate the input sequencesclf;n = 0:40; D = 10;a = 3.0;b = -2;x = a*cos(2*pi*0.2*n) + b*cos(2*pi*0.8*n);xd = zeros(1,D) x;num = 2.2403 2.4908 2.2403;den = 1 -0.4 0.75;ic = 0 0; % Set initial conditions% Compute the output yny = filter(num,den,x,ic);% Compute the output ydnyd = filter(num,den,xd,ic);% Compute the difference output dnd = y - yd(1+D:41+D);% Plot the outputssubplot(3,1,1)stem(n,y);ylabel(Amplitude); title(Output yn); grid;subplot(3,1,2)stem(n,yd(1:41);ylabel(Amplitude);title(Output due to Delayed Input xn -, num2str(D),); grid;subplot(3,1,3)stem(n,d);xlabel(Time index n); ylabel(Amplitude);title(Difference Signal); grid;运行结果:3.计算线性时不变系统的冲激响应程序如下:% Program P2_5% Compute the impulse response yclf;N = 45;num = 0.9 -0.45 0.35 0.002;den = 1 0.71 -0.46 -0.62;y = impz(num,den,N);% Plot the impulse responsestem(y);xlabel(Time index n); ylabel(Amplitude);title(Impulse Response); grid;运行结果:4.通过卷积得到有限冲激响应系统的输出序列程序如下:% Program P2_7clf;h = 3 2 1 -2 1 0 -4 0 3; % impulse responsex = 1 -2 3 -4 3 2 1; % input sequencey = conv(h,x);n = 0:14;subplot(2,1,1);stem(n,y);xlabel(Time index n); ylabel(Amplitude);title(Output Obtained by Convolution); grid;x1 = x zeros(1,8);y1 = filter(h,1,x1);subplot(2,1,2);stem(n,y1);xlabel(Time index
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 猎头行业CC话术
- 医患关系障碍来源分析
- 工厂节日策划活动方案
- 黑金卡营销方案
- 活动策划财务定价方案
- 垃圾厅施工方案
- 中兴全方案营销
- 农村猪圈施工方案
- 高价宣传营销方案
- 五一情感营销方案
- 2025年深圳市网格员招聘笔试题库及答案解析
- 2025年甘肃省武威市凉州区金山镇选聘专业化管理大学生村文书考试笔试备考试题及答案解析
- DB44∕T 2604-2025 城镇污水处理能源消耗限额
- 2025至2030中国养老地产行业项目调研及市场前景预测评估报告
- 2025年安康杯知识竞赛试题及答案
- 吊绳的施工方案
- 上海财经大学:低空+发展研究报告(2025年)
- DB33-T 1455-2025 涉企增值服务工作指南
- 《小额贷款公司监督管理暂行办法》测试竞赛考试练习题库(附答案)
- 藏族简介课件
- 儿童绘本-威斯利王国课件
评论
0/150
提交评论