Creates the SSB demodulation of the signal s with carrier frequency fc, sampling frequency fs initial phase phi and a standard 5th order low pass butterworth filter [b a] = butter (5, fc .* 2 ./ fs) where b and a are numerator and denominator respectively.
The initial phase phi is optional and will be considered 0 if not given.
references and equation for ssdebmod: https://electronicscoach.com/single-sideband-modulation.html https://www.ee-diary.com/2023/02/ssb-sc-am-signal-generation-in-matlab.html
Inputs:
Output:
Demo
demo ssbmod
See also: ssbmod,ammod,amdemod, fmmod, fmdemod.
The following code
fc=400; fs=8000; t=0:(1/fs):0.1; y=sin(20*pi*t); y1=ssbmod(y,fc,fs); y2=ssbdemod(y1,fc,fs); figure(1) subplot(3,1,1) plot(t,y) subplot(3,1,2) plot(t,y1) subplot(3,1,3) plot(t,y2)
Produces the following figure
Figure 1 |
---|
Package: communications