Sei sulla pagina 1di 2

3.2 The purpose of this exercise is to demonstrate the properties of SSB modulation.

Develop a
computer program to generate both upper-sideband and lower-sideband SSB signals and display
both the time-domain signals and the amplitude spectra of these signals. Assume the message
signal (𝑡) = 2cos(2𝜋𝑓𝑚𝑡) + cos(4𝜋𝑓𝑚𝑡). Select both 𝑓𝑚 and 𝑓𝑐 so that both the time and frequency
axes can be easily calibrated. Plot the envelope of the SSB signals, and show that both the upper-
sideband and the lower-sideband SSB signals have the same envelope. Use the FFT algorithm to
generate the amplitude spectrum for both the upper-sideband and the lower-sideband SSB signal.
Answer:
fc = 2000;
fs = 10000;
fm = 200;
t =0:1/fs:((2/fm)-(1/fs));
x = 2*cos(2*pi*fm*t) + cos(4*pi*fm*t);
y_lssb = x.*cos(2*pi*fc*t)+imag(hilbert(x)).*sin(2*pi*fc*t);
y_ussb = x.*cos(2*pi*fc*t)-imag(hilbert(x)).*sin(2*pi*fc*t);
fl = abs(fft(y_lssb,1024));
fu = abs(fft(y_ussb,1024));
fl = [fl(514:1024) fl(1:513)];
fu = [fu(514:1024) fu(1:513)];
f = (-511*fs/1024):(fs/1024):(512*fs/1024);

subplot(2,2,1);
plot(y_lssb); title('lower sideband');
subplot(2,2,2);
plot(y_ussb); title('upper sideband');
subplot(2,2,3);
plot(f,fl); title('lower spectre');
subplot(2,2,4);
plot(f,fu); title('upper spectre');

Potrebbero piacerti anche