This m-fine plots the transmitted and received signal of simple DS-SS modulation.This uses BPSK modulation for data
Sanjeet Kumar (2021). Direct sequence Spread spectrum (https://www.mathworks.com/matlabcentral/fileexchange/24491-direct-sequence-spread-spectrum), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
Am I correct to say that your carrier at the receiver just so-happens to be conveniently the same phase as the transmitter's carrier? But, in practice, the incoming signal at the receiver side will have an embedded carrier signal that won't be of the same phase as the transmitter's carrier.
When k loop from 1 to 120, carrier concatenates cos(2*pi) and cos(0), generating two 1s.
t should be [0, 2 * pi).