My friends and I tried many times but we couldn\'t. I need Matlab or Python code that solves the example problems below.
According to the probability values of the symbol