文档介绍:实验一眼图
一、实验目的
通过MATLAB进行一些简单的建模与仿真,让我们对MATLAB的一些基本操作步骤与原理有一定的了解并掌握,在例题的基础上能够有些自己的思想,并且能够在原有的基础上进行一些简单的数学建模。掌握数字通信系统的建模仿真,如二进制传输的错误率仿真,带限基带传输系统的仿真,数字调制的仿真以及扩频系统的仿真等学会对通信系统建模仿真的评估,如随机数的产生和常用的随机分布,学****蒙特卡罗方法以及对仿真结果的数据进行处理。
二、实验原理
建立仿真模型,用示波器模块Scope来观察眼图
模型设计如下:
参数设置如下:
Random integer generator
M-ary number
4
Initial seed
37
Sample time
1e-3
Output data type
Double
Unipolar to bipolar converter
M-ary number
4
polarity
positive
upsample
Upsample factor
10
Sample offset
0
Initial conditions
0
Frame-based mode
Maintain input frame size
Discrete filter
Numerator coefficient
rcosine(1e3,1e4,'fir/normal',,3)
Denominator coefficient
1
Sample time
-1
Discrete-time eye diagram scope
Plotting properties
Rendering properties
Axes properties
Figure properties
Samples per symbol
10
Markers
Y axis minimum
-
Offset
0
Line style
—
Y axis maximum
Symbols per trace
2
Line color
B
In-phase y-axis label
In-phase Amplitude
Scope position
[55 408 358 311]
Traces displayed
180
Quatrature y-axis label
Quadrature Amplitude
title
Eye Diagram
New traces per display
60
Simulation→configuration parameters
Down sample
Downsample factor
4
Sample offset
0
Initial condition
0
Sample-based mode
Allow multirate
Frame-based mode
Maintain input frame size
Spectrum scope
Scope properties
Display properties
Axis properties
Line properties
Integer delay
Initial conditions
Sample time
-1
Number of delay
30
mux
Number of input
2
Display option
bar
Scope右键open block
block
general
Data history
Number of axes
1
Limit data points to last
5000
Time range
Tick labels
Bottom axis only
decimation
1
三、实验操作及结果
1、按以上原理所连的电路图
2、运行后显示的结果:
实验小结
这次实验主要通过MATLAB进行一些简单的建模与仿真,让我们对MATLAB的一些基本操作步骤与原理有一定的了解并掌握。在设置参数的时候要注意设置合适的参数,不然眼图会变得很难看甚至不像眼图。
实验二二电平码
一、实验目的
通过MATLAB进行一些简单的建模与仿真,进一步理解和熟悉二电平码及其波形。
二、实验原理
二平码的原理图如下,建立仿真模型,用示波器模块Scope来观察:
三、实验内容和步骤
根据原理图选择原件,再