Communications Toolbox    

Error Rates

Comparing messages before and after transmission can help you evaluate the quality of a communication system design or the performance of a special technique or algorithm. If your communication system uses several bits to represent a single symbol, then counting bit errors is different from counting symbol errors. In either the bit- or symbol-counting case, the error rate is the number of errors divided by the total number (of bits or symbols) transmitted.

The biterr function compares two messages and computes the number of bit errors and the bit error rate. The symerr function compares two messages and computes the number of symbol errors and the symbol error rate.

Example: Computing Error Rates

The script below uses the symerr function to compute the symbol error rates for a noisy linear block code. After artificially adding noise to the encoded message, it compares the resulting noisy code to the original code. Then it decodes and compares the decoded message to the original one.

The output is below. The error rate decreases after decoding because the Hamming decoder corrects some of the errors. Your results might vary because the example uses random numbers.

Comparison of Symbol Error Rate and Bit Error Rate

In the example above, the symbol errors and bit errors are the same because each symbol is a bit. The commands below illustrate the difference between symbol errors and bit errors in other situations.

bnum is 5 because the second entries differ in two bits and the third entries differ in three bits. brate is 5/9 because the total number of bits is nine. The total number of bits is, by definition, the number of entries in a or b times the maximum number of bits among all entries of a and b.


  Random Signals Eye Diagrams