Experiment No.: 02 Name of The Experiment: SSB Modulation Using MATLAB Coding
Experiment No.: 02 Name of The Experiment: SSB Modulation Using MATLAB Coding
: 02
Name of the Experiment: SSB Modulation using MATLAB Coding
Objective:
1. To understand the operation theory of double sideband suppressed carrier (SSB)
modulation.
2. To understand the waveforms and frequency spectrum of SSB.
3. To develop the MATLAB Code of SSB modulation.
Learning Outcome: After completing this experiment the students will be able to:
1. Learn about working principle of a complete Single Sideband modulator.
2. Explain the output waveforms & frequency spectrum of SSB modulated signal.
Theory:
Write a theory according to the discussion in the class
MATLAB Code:
Without using the built in MATLAB function
clc;
close all;
clear all;
subplot(4,1,1)
plot(t,m)
xlabel('time (s)')
ylabel('amplitude of m(t)')
subplot(4,1,2)
plot(t,c)
xlabel('time (s)')
ylabel('amplitude of carrier')
subplot(4,1,3)
plot(t,dsb_in)
xlabel('time (s)')
ylabel('amplitude of DSB-SC')
subplot(4,1,4)
plot(t,SSB_sig)
axis([0 .01 -2 2])
xlabel('time (s)')
ylabel('amplitude of SSB')
mess = fft(m);
carr = fft(c);
dsb = fft(dsb_in);
ssb = fft(SSB_sig);
subplot(4,1,1)
plot(f_Hz, mess_mag_spec)
axis([-12000 12000 0 0.5])
title('Magnitude of message signal vs frequency')
xlabel('frequency (Hz)')
ylabel('magnitude')
subplot(4,1,2)
plot(f_Hz, carr_mag_spec)
xlabel('frequency (Hz)')
ylabel('magnitude')
title('Magnitude of carrier signal vs frequency')
axis([-12000 12000 0 0.5])
subplot(4,1,3)
plot(f_Hz, dsb_mag_spec)
xlabel('frequency (Hz)')
ylabel('magnitude')
title('Magnitude of DSB-SC signal vs frequency')
axis([-12000 12000 0 0.5])
subplot(4,1,4)
plot(f_Hz, ssb_mag_spec)
xlabel('frequency (Hz)')
ylabel('magnitude')
title('Magnitude of SSB signal vs frequency')
axis([-12000 12000 0 0.5])
m_size = size(m);
c_size = size(c);
subplot(4,1,1)
plot(t,m)
xlabel('time (s)')
ylabel('amplitude of m(t)')
subplot(4,1,2)
plot(t,c)
xlabel('time (s)')
ylabel('amplitude of carrier')
subplot(4,1,3)
plot(t,dsb_sig)
xlabel('time (s)')
ylabel('amplitude of DSB-SC')
subplot(4,1,4)
plot(t,SSB_sig)
axis([0 .01 -1 1])
xlabel('time (s)')
ylabel('amplitude of SSB')
mess = fft(m);
carr = fft(c);
dsb = fft(dsb_sig);
ssb = fft(SSB_sig);
subplot(4,1,1)
plot(f_Hz, mess_mag_spec)
axis([-12000 12000 0 0.5])
title('Magnitude of message signal vs frequency')
xlabel('frequency (Hz)')
ylabel('magnitude')
subplot(4,1,2)
plot(f_Hz, carr_mag_spec)
xlabel('frequency (Hz)')
ylabel('magnitude')
title('Magnitude of carrier signal vs frequency')
axis([-12000 12000 0 0.5])
subplot(4,1,3)
plot(f_Hz, dsb_mag_spec)
xlabel('frequency (Hz)')
ylabel('magnitude')
title('Magnitude of DSB-SC signal vs frequency')
axis([-12000 12000 0 0.5])
subplot(4,1,4)
plot(f_Hz, ssb_mag_spec)
xlabel('frequency (Hz)')
ylabel('magnitude')
title('Magnitude of SSB signal vs frequency')
axis([-12000 12000 0 0.5])
Results:
Discussion:
Student Task:
1. Write a MATLAB code on the given task during the class.
2. Collect the images of waveforms/spectrum.
3. Explain the waveforms/spectrum