There are 3 functions containing the BPSK, QPSK and 16QAM transmitter, channel (multipath Rayleigh and exponentially decaying plus AWGN) and a script which calls the 3 functions and plots BER and PER results. For more information, please, have a look to this post: https://sites.google.com/site/solutionsbehindthesciences/towards-5g/bpskqpskand16qamdssstxandrxwithmultipathchannel
Also feel free to comment or ask :) Thanks!
Behind The Sciences (2020). Direct Sequence Spread Spectrum (DSSS) for BPSK, QPSK and 16QAM modulations (https://www.mathworks.com/matlabcentral/fileexchange/55810-direct-sequence-spread-spectrum-dsss-for-bpsk-qpsk-and-16qam-modulations), MATLAB Central File Exchange. Retrieved .
Thanks, Vadim, but commenting those "ends" seems to make the function wrong.
Also, there were a mistake in the main function, in the plot, so the constellation with zero PER is actually QPSK because the errors are calculating using this formula:
errors = erros1+errors2; % couting the number of errors
And errors1 and errors2 are zero. There is a new version uploaded with the plot corrected.
Thanks for the comments!
I find error in BPSK m-file.
2 "end" must come through to end file:
stanDevChan=sqrt(vark/2); %factor root 2 so half power in real and imag.
please I try to plot bit error for Bpsk ,I get zero ,Can you cheack the function its work or not?
For the Bpsk, it's giving zero except for the last plot and please can I get the plot for the bit error rate
The PER graph has been corrected (BPSK and QPSK were swapped in the previous version)