Here's an implementation of a Matlab function that generates a binary offset carrier wave modulation:
main.m408 chars12 lines
To use the function, simply call it with the appropriate input arguments:
main.m220 chars7 lines
The modulated_signal
output variable contains the resulting modulated signal. Note that this implementation assumes binary data (1s and 0s), and uses a BOC modulation technique that combines a cosine wave with a version modulated by the data sequence.
gistlibby LogSnag