山东大学数字信号处理实验:常见离散信号的MATLAB产生和图形显示

MATLAB 是一套功能强大的工程计算及数据处理软件,广泛应用于工业,电子,医疗和建筑等众多领域。它是一种面向对象的,交互式程序设计语言,其结构完整又优良的可移植性。它在矩阵运算,数字信号处理方面有强大的功能。另外,MATLAB提供了方便的绘图功能,便于用户直观地输出处理结果。

    本课程实验要求学生运用MATLAB编程完成一些数字信号处理的基本功能,加深对教学内容的理解。

实验1 常见离散信号的MATLAB产生和图形显示

一.实验目的

加深对常用离散信号的理解;

二.实验原理

  1. 单位抽样序列

在MATLAB中可以利用zeros()函数实现。

如果在时间轴上延迟了k个单位,得到即:

       2.单位阶越序列

在MATLAB中可以利用ones()函数实现。

       3.正弦序列

在MATLAB中

       4.复正弦序列

在MATLAB中

5.指数序列

在MATLAB中

三.实验要求

(1)预先阅读附录(MATLAB基础介绍);

(2)讨论复指数序列的性质。

四:实验内容

编制程序产生上述5种信号(长度可输入确定),并绘出其图形。

1.单位抽样序列:

①实验源代码:

n=0:5;
x1=[1 zeros(1,5)];
x2=[zeros(1,2) 1 zeros(1,3)];
subplot(1,2,1);
stem(n,x1);
axis([-4,4,0,1.5])
title('单位抽样序列')
subplot(1,2,2);
stem(n,x2);
title('时间轴上延迟2个单位')

②实验结果:

2.单位阶跃序列

①实验源代码

n=0:8;
x=[ones(1,9)];
stem(n,x);
axis([-8,8,0,2])
title('单位阶跃序列')

②实验结果:

3.正弦序列

①实验源代码:

A=9;
fai=pi/4;
n=-15:15;
f=0.1;
Fs=1;
x=A*sin(2*pi*n*f/Fs+fai);
stem(n,x);
title('正弦序列')
grid on;

②实验结果:

4. 复正弦序列

①实验源代码:

n=-20:20;
f=0.1;
fs=1;
x=exp(j*2*pi*f*n/fs);
stem(n,x);
title('复正弦序列')
grid on;

②实验结果:

5.指数序列

①实验源代码:

n=0:15;
a=5;
x=a.^n;
stem(n,x);
title('指数序列')
grid on;

②实验结果:

© 版权声明
THE END
喜欢就支持以下吧
点赞0赞赏
分享
评论 共14条

请登录后发表评论

    • 福儿fule的头像-行而思雨
    • film0
      Simply wish to say your article is as astonishing. Dacey Loren Oralla
      10月前
    • 福儿fule的头像-行而思雨
    • film0
      Although websites we backlink to beneath are considerably not associated to ours, we feel they are essentially really worth a go by, so have a look. Alvina Kelvin Sterner
      10月前
    • 福儿fule的头像-行而思雨
    • sikis izle0
      I think the admin of this site is really working hard for his website, since here every stuff is quality based data. Myrtia Giff Florri
      10月前
    • 福儿fule的头像-行而思雨
    • erotik0
      If you wish for to take a great deal from this article then you have to apply such techniques to your won web site. Tammie Rossy Bride
      10月前
    • 福儿fule的头像-行而思雨
    • erotik izle0
      I constantly emailed this webpage post page to all my friends, because if like to read it then my links will too. Zenia Derry Hultgren
      10月前
    • 福儿fule的头像-行而思雨
    • erotik0
      Pretty! This has been an extremely wonderful article. Thank you for providing these details. Cosette Onofredo Porett
      10月前
    • 福儿fule的头像-行而思雨
    • erotik0
      Doc Suggestions are supported on Dynamics 365 Online. Bunnie Elias Jarrell
      10月前
    • 福儿fule的头像-行而思雨
    • sikis izle0
      Remarkable! Its in fact awesome article, I have got much clear idea on the topic of from this paragraph. Jannelle Templeton Iow
      10月前
    • 福儿fule的头像-行而思雨
    • porno0
      I have been examinating out many of your articles and i can state pretty nice stuff. I will definitely bookmark your site. Lissa Davis Shani
      10月前
    • 福儿fule的头像-行而思雨
    • sikis izle0
      This piece of writing presents clear idea for the new users of blogging, that really how to do blogging. Thomasin Berkeley Gaivn
      10月前
    • 福儿fule的头像-行而思雨
    • sikis izle0
      If you want to use the photo it would also be good to check with the artist beforehand in case it is subject to copyright. Best wishes. Aaren Reggis Sela
      10月前
    • 福儿fule的头像-行而思雨
    • porno0
      If you want to use the photo it would also be good to check with the artist beforehand in case it is subject to copyright. Best wishes. Aaren Reggis Sela
      10月前