Time delay when recovering a signal using SSB-SC modulation and demodulation

1 view (last 30 days)
t = linspace(-0.04 , 0.04 , 8000);
fs = 1/(t(2)-t(1));
f = linspace(0 , fs , 8000);
x = sinc(200 * t) + 2 * sinc(200 * t - 1) + sinc(200 * t + 1);
m = x.*cos(400 * pi * t) + x.*cos(800 * pi * t);
M = fft(m);
s = m.*cos(2 * pi * 8000 * t);
S = fft(s);
[B A] = fir1(2000,0.16,'low');
l = filter(B,A,s);
L = fft(l);
q = l.*cos(2 * pi * 8000 * t);
Q = fft(q);
[B2 A2] = fir1(50,0.02,'low');
out = filter(B2,A2,q);
OUT = fft(out);
plot(t,max(m)/max(out) * out);
hold on;
plot(t,m,'r');
where is the error i made ?

Answers (0)

Categories

Find more on Filter Banks in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!