Introduction - If you have any usage issues, please Google them yourself
This MATLAB Code plot BER Vs Eb/No for M_ary PSK with different values of M. The user can choose the desired BER and the code will tell what is the required Eb/No to achieve this BER for different values of M. In addition, a plot for shannon limit is available.