Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

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

Asked by Ahmed on 30 Jan 2013
    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 ?

0 Comments

Ahmed

Products

No products are associated with this question.

0 Answers

Contact us