文档详情

数字信号处理实验 (云南大学)实验报告一.pdf

发布:2025-01-01约4.11千字共4页下载文档
文本预览下载声明

君子忧道不忧贫。——孔丘

《数字信号处理》·实验一

实验题目:离散时间信号的时域分析

教师:杨鉴

专业:电子信息科学与技术

学号:姓名:

Q1.29运行程序P1.5,以产生所有相关的信号

君子忧道不忧贫。——孔丘

MATLAB程序代码如下:

%程序p1.5通过平均的信号平滑

clf;

R=51;

d=0.8*(rand(R,1)-0.5);

m=0:R-1;

s=2*m.*(0.9.^m);

x=s+d;

subplot(2,1,1);

plot(m,d,r-,m,s,g--,m,x,b-.);

xlabel(时间序号n);ylabel(振幅);

legend(d[n],s[n],x[n]);

x1=[00x];x2=[0x0];x3=[x00];

y=(x1+x2+x3)/3;

subplot(2,1,2);

plot(m,y(2:R+1),r-,m,s,g--);

legend(y[n],s[n]);

xlabel(时间序号n);ylabel(振幅);

10

d[n]

s[n]

5

x[n]

0

-5

05101520253035404550

时间序号n

8

y[n]

6s[n]

幅4

2

0

051015202530354045

显示全部
相似文档