武汉大学数字信号实验一.docVIP

  • 24
  • 0
  • 约1.16万字
  • 约 13页
  • 2016-05-23 发布于重庆
  • 举报
武汉大学数字信号实验一

姓名:全权 学号:2013302530120 班级:信安四班 日期:5月8日 实验1基本离散信号的MATLAB产生和图形显示 实验前言: MATLAB 是一套功能强大的工程计算及数据处理软件,在众多领域得到广泛应用。它是一种面向对象的,交互式程序设计语言,其结构完整有优良的可移植性。它在矩阵运算,数字信号处理方面有强大的功能。另外,MATLAB提供了方便的绘图功能,便于用户直观地输出处理结果。 本课程实验要求学生运用MATLAB编程完成一些数字信号处理的基本功能,加深对教学内容的理解。 实验目的: 熟悉掌握MATLAB的基本操作 通过使用来熟悉常用离散信号; 实验内容: 1.1 GENERATION OF SEQUENCES Project 1.1 Unit sample and unit step sequences A copy of Program P1_1 is given below. % Program P1_1 % Generation of a Unit Sample Sequence clf; % Generate a vector from -10 to 20 n = -10:20; % Generate the unit sample sequence u = [zeros(1,10) 1 zeros(1,20)]; % Plot the unit sample sequence stem(n,u); xlabel(Time index n);ylabel(Amplitude); title(Unit Sample Sequence); axis([-10 20 0 1.2]); Insert program code here. Copy from m-file(s) and paste. Answers: Q1.1 The unit sample sequence u[n] generated by running Program P1_1 is shown below: Insert MATLAB figure(s) here. Copy from figure window(s) and paste. Q1.2 The purpose of clf command is - 清除figure中的内容 The purpose of axis command is -控制xy轴的范围大小 The purpose of title command is -给figure图自己的标题 The purpose of xlabel command is -给x轴贴上标签 The purpose of ylabel command is -给y轴贴上标签 Q1.3 The modified Program P1_1 to generate a delayed unit sample sequence ud[n] with a delay of 11 samples is given below along with the sequence generated by running this program. clf; n = 0:30; u = [zeros(1,11) 1 zeros(1,19)]; stem(n,u); xlabel(Time index n);ylabel(Amplitude); title(Unit Sample Sequence); axis([0 30 0 1.2]); Insert program code here. Copy from m-file(s) and paste. Insert MATLAB figure(s) here. Copy from figure window(s) and paste. Q1.4 The modified Program P1_1 to generate a unit step sequence s[n] is given below along with the sequence generated by running this program. % Program P1_1 % Generation of a Unit Step Sequence clf; % Generate a vector from -10 to 20 n = -10:20; % Generate the unit sample sequence u = [zeros(1,10) ones(1,21)]; % Plot the unit sample sequence stem(n,u); xl

文档评论(0)

1亿VIP精品文档

相关文档