File Exchange

image thumbnail

Direct Sequence Spread Spectrum (DSSS) for BPSK, QPSK and 16QAM modulations

version (8.29 KB) by Behind The Sciences
BPSK, QPSK and 16QAM DSSS Tx and Rx with multipath channel


Updated 02 Jul 2017

View License

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:
Also feel free to comment or ask :) Thanks!

Cite As

Behind The Sciences (2020). Direct Sequence Spread Spectrum (DSSS) for BPSK, QPSK and 16QAM modulations (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

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.
% end
% end

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

flower bel


The PER graph has been corrected (BPSK and QPSK were swapped in the previous version)

MATLAB Release Compatibility
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux