描述.txt
来自「收集的一组跟噪声产生以及消除、衡量消噪性能指标的MATLAB仿真源代码」· 文本 代码 · 共 4 行
TXT
4 行
BPSK SYSTEM SIMULATION
We simulate the generation of random variables r0 and r1, which constitutes the input to detector. We begin by generating a binary sequence of 0?s and 1?s that occur with equal probability and are mutually (statistically) independent. For this, we use a Random number generator that generates a uniform random number between 0 and 1. If the number generated is in range (0, 0.5), the binary source output is 0 else it is 1. if 0 is generated, then r0=E+n0 and r1=n1. if a 1 is generated r0=n0 and r1=E+n1.
The additive noise components n0 and n1 are generated by mean of two gaussian noise generators there means are zero and there variances, ? = E*N0/2. For convenience we take E=1(normalized value) and vary ? . The SNR (E/N0) is then equal to 1/2?. The detector output is compared with the binary transmitted sequence and an error counter is used to count the number of bit errors.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?