汉明码的性能分析 下载本文

课程设计任务书

学生姓名: 专业班级: 通信0906班 指导教师: 尹勇 工作单位: 信息工程学院

题 目:汉明码的性能分析

初始条件:

MATLAB软件,电脑,通信原理知识

要求完成的主要任务:

输入信号:速率为100Bd的矩形信号 信道:AWGN

要求:画出编码器输入、输出信号,信道的输出信号,译码器的输出信号的波形、

频谱以及误码率与译码器输入信噪比的关系曲线

参考书目:

徐明远主编《MATLAB仿真在通信与电子工程中的应用》 王兴亮主编《数字通信原理与技术》 孙屹 吴磊主编《Simulink通信仿真开发手册》 葛哲学主编《精通MATLAB》 樊昌信 曹丽娜主编《通信原理》

时间安排:

第1周,安排任务(鉴主15楼实验室)

第1-17周,仿真设计(鉴主13楼计算机实验室) 第18周,完成(答辩,提交报告,演示)

指导教师签名:

年 月 日

系主任(或责任教师)签名:

年 月 日

武汉理工大学《MATLAB应用》课程设计报告

目 录

摘要 .................................................................................................................................................. 3 Abstract ............................................................................................................................................. 4 1.引言 .............................................................................................................................................. 5 2.设计原理........................................................................................................................................ 6

2.1汉明码编码原理 ................................................................................................................ 6 2.2汉明码纠错原理 ................................................................................................................ 8 2.3程序函数及命令介绍 ........................................................................................................ 9 3.仿真与程序 ............................................................................................................................... 11

3.1仿真 .................................................................................................................................. 11

3.1.1 SIMULINK仿真 ................................................................................................ 11 3.1.2 模块属性设置 ..................................................................................................... 12 3.1.3 M文件程序 ........................................................................................................ 14 3.1.4仿真结果 .............................................................................................................. 15 3.1.5调试 ...................................................................................................................... 20 3.1.6结果分析 .............................................................................................................. 20 3.2程序 .................................................................................................................................. 20

3.2.1程序 ...................................................................................................................... 20 3.2.2调试结果 .............................................................................................................. 21 3.2.3结果分析 .............................................................................................................. 22

4.总结 ............................................................................................................................................ 23 参考文献......................................................................................................................................... 24

2

武汉理工大学《MATLAB应用》课程设计报告

摘要

随着信息时代和数字世界的到来,通信原理已成为当今一门极其重要的学科和技术领域。在通信原理中起着重要的作用并已获得广泛应用的是汉明码。汉明码是一种能够自动检测并纠正一位错码的线性纠错码,即SEC码,用于信道编码与译码中,提高通信系统抗干扰的能力。

MATLAB是英文MATrix LABoratory(矩阵实验室)的缩写。它是美国的MathWorks公司推出的一套用于科学计算和图形处理可视化、高性能语言与软件环境。它的信号处理工具箱包含了各种经典的和现代的数字信号处理技术,是一个非常优秀的算法研究与辅助设计的工具。在设计汉明码建模仿真时,通常采用MATLAB来进行辅助设计和仿真。

本文主要利用MATLAB中SIMULINK通信系统仿真模型库进行汉明码建模仿真,并调用通信系统功能函数进行编程,绘制时域波形,频谱及误码率与信噪比关系曲线图。在此基础上,对汉明码的性能进行分析,得出结论。

关键词:通信原理 MATLAB 汉明码 SIMULINK

3

武汉理工大学《MATLAB应用》课程设计报告

Abstract

With the information age and the advent of the digital world, communication principles has become an extremely important disciplines and technical fields. In communication principles plays an important role and has been widely used in Hamming Code. Hamming Code is a linear error-correcting code which can automatically detect and correct an error. It is belongs to SEC code and applied to channel encoding and decoding to improve the anti-jamming capacity of the communication system.

MATLAB is in English MATrix LABoratory (Matrix Laboratory) acronym. It is the United States, MathWorks has introduced a set of computing and graphics processing for scientific visualization, high-performance language and software environment. Its signal processing toolbox contains a variety of classic and modern digital signal processing technology, is a very good algorithm research and aided design tools. In the design ofhamming code model to simulate , it is usually carried out using MATLAB-aided design and simulation.

In this paper, SIMULINK simulation model library of MATLAB is mainly used to build hamming code model to simulate. At the same time, communication system functions is called to program. And time-domain waveform, spectrum, the relationship between BER and SNR curve is drawn. On this basis, the property of the hamming code is analyzed to get the conclusion.

Keywords:Communication Principles MATLAB Hamming Coding SIMULINK

4