Pass a random signal through a binary symmetric channel. For a specified error probability, compare the total number of errors indicated by the
Err port to result reported by the
Error Rate Calculation block.
Run the model with the error probability of the BSC block set to 0.02. The results from the
Error Rate Calculation block are saved to the base workspace variable
ErrorVec in a 1-by-3 row vector.
ErrorVec contains [
Total number of errors: 20296
Err port for the
Binary Symmetric Channel is a binary vector whose length matches the total number of samples processed. By summing the elements of the output
Err vector you get the total number of errors introduced into the signal data. The sum of the elements of the
Err vector is saved to the base workspace variable
Error Rate Calculation blocks reports the same total number of errors indicated by