Communications Blockset    

Generating Error Curves

To plot error rates as a function of noise level using the baseband simulation, execute the following code in MATLAB. The plot includes both the theoretical error rates and the error rates from running the simulation.

The figure below shows the error curves. Notice that the values from the baseband simulation agree with the theoretical values.

Using the Passband Model to Generate Error Curves

If you want to generate error curves using the passband model, you can use the preceding code after making these modifications:

The resulting plot looks very similar to the plot produced using the baseband model, because baseband and passband simulation are equivalent for this purpose.


  Running an Equivalent Baseband Simulation Speed of Baseband Versus Passband Models