Getting Started | ![]() ![]() |
Setting Parameters in the Phase Noise Model
To set parameters in the model, do the following:
inf
.
EbNodB+10*log10(8)
in the block's mask. The variable EbNodB
represents bit energy to noise ratio. The term 10*log10(8)
converts EsNodB
to Es/No, which is the symbol energy to noise ratio. The term 8 is present because there are eight bits per channel symbol in 256-QAM.
-66
.
100
in the Target number of errors field.
10^5
.
You can now run six simulations, with Es/No parameter values given by these vector entries plus 10 log(8). The following script runs the simulations in a loop and stores the results in a matrix called BER_Vec
. The simulations might take several minutes to run.
BER_Vec=[]; for n=1:length(EbNoVec); EbNodB=EbNoVec(n); sim('phasenoise_sim'); BER_Vec(n,:)=phase_BER; end;
When the simulations have ended and the prompt reappears, type the following at the MATLAB prompt.
This displays the results in a matrix. Each row is the output of the Error Calculation Block for a single simulation. Notice that the first column, which gives the error rates for the six simulations, decreases. This is because the noise level decreases as EbNodB
increases. The last column gives the number of symbols processed in each simulation.
![]() | Running Multiple Simulations | Plotting the Results of Multiple Simulations | ![]() |