Final_MATLAB
Final_MATLAB
For each demodulated signal (AM, DSB-SC, SSB, FM), calculate the SNR
using MATLAB’s snr() function.
Compare the SNR values for each modulation scheme to evaluate which
modulation technique is more robust to noise.
MODULATION TECHNIQUES
Amplitude Modulation (AM):
DSB-SC is a variation of AM where the carrier is suppressed, and only the two
sidebands carry the information. This improves power efficiency as no power is
wasted on the carrier. The signal requires the same bandwidth as AM but with the
added complexity of needing a coherent demodulator to extract the message signal.
DSB-SC is more power-efficient but still uses double the bandwidth of the original
signal.
Single Sideband (SSB):
SSB modulation removes one of the sidebands, reducing the bandwidth by half
compared to AM and DSB-SC. This makes SSB highly bandwidth efficient,
transmitting only the essential sideband. SSB requires complex filtering and
demodulation but is preferred in long-distance communications due to its power and
bandwidth efficiency.
In FM, the frequency of the carrier wave is varied according to the message signal.
FM provides high resistance to noise and is widely used in high-fidelity broadcasting.
However, it consumes much more bandwidth than AM and DSB-SC, making it
bandwidth inefficient. FM is ideal where signal quality and noise robustness are
prioritized over bandwidth conservation.
Additive White Gaussian Noise (AWGN) represents a basic noise model that adds
random, white noise to the transmitted signal. The term "white" refers to the noise
having a constant power spectral density across all frequencies, similar to white light
containing all visible wavelengths. "Gaussian" indicates that the amplitude of the
noise follows a normal distribution.
1. Signal Distortion: AWGN adds random variations that distort the signal, making it
harder to detect and demodulate accurately.
2. Decreased Signal-to-Noise Ratio (SNR): AWGN reduces the SNR, making it more
challenging to recover the original message from the received signal.
3. Bit Errors: In digital communication, AWGN can introduce bit errors, as the noisy
signal may be misinterpreted during demodulation.
AWGN simulates real-world conditions where signals are transmitted over noisy
channels. In real environments, factors like thermal noise, atmospheric conditions, or
interference from other transmissions generate noise similar to AWGN. By adding
AWGN to signals in MATLAB simulations, we mimic the unpredictable nature of real
communication channels.
Pros:
Cons:
Power Inefficiency: A significant portion of power is used by the carrier wave, which
does not convey any information.
Bandwidth Inefficiency: AM requires double the bandwidth of the original message
signal due to the presence of both upper and lower sidebands.
Noise Susceptibility: AM signals are highly susceptible to noise and interference,
which can distort the signal and lead to a poor quality reception.
Pros:
Improved Power Efficiency: DSB-SC does not transmit the carrier, reducing power
consumption compared to AM.
Reduced Distortion: Since the carrier is suppressed, there is less distortion caused
by noise.
Cons:
Pros:
High Bandwidth Efficiency: SSB uses only one sideband, effectively halving the
bandwidth requirement compared to AM and DSB-SC.
Power Efficiency: SSB transmits information with minimal power, as it avoids
transmitting the carrier and one sideband.
Cons:
Complexity: The generation and demodulation of SSB signals are more complex,
requiring advanced filtering techniques.
Phase and Frequency Stability: SSB systems require precise synchronization to
maintain phase coherence, which can complicate the design.
Pros:
Cons:
Summary Table
Modulation Noise
Power Efficiency Bandwidth Efficiency
Technique Robustness
Moderate (carrier
DSB-SC Low (same as AM) Moderate
suppressed)
Low (broadband
FM Moderate Very High
requirements)
% Parameters
fs = 10000; % Sampling frequency
t = 0:1/fs:1-1/fs; % Time vector (1 second duration)
f_message = 5; % Frequency of message signal (Hz)
A_message = 1; % Amplitude of message signal
f_carrier = 100; % Frequency of carrier signal (Hz)
A_carrier = 1; % Amplitude of carrier signal
snr_db = 15; % Signal-to-Noise Ratio in dB
% Modulate Signals
% 1. Amplitude Modulation (AM)
am_modulated_signal = (1 + message_signal) .* A_carrier .* cos(2 * pi * f_carrier
* t);
% 3. Single-Sideband (SSB)
analytic_signal = hilbert(message_signal);
ssb_modulated_signal = real(analytic_signal .* exp(1j * 2 * pi * f_carrier * t));
% AM Demodulation
envelope_am = abs(received_am);
lp_filter_am = designfilt('lowpassfir', 'FilterOrder', 20, 'CutoffFrequency', 20,
'SampleRate', fs);
demodulated_am = filtfilt(lp_filter_am, envelope_am);
% DSB-SC Demodulation
dsb_sc_demodulated = received_dsb_sc .* cos(2 * pi * f_carrier * t);
[b, a] = tf(lp_filter_am); % Get the filter coefficients from the low-pass filter
demodulated_dsb_sc = filter(b, a, dsb_sc_demodulated);
% SSB Demodulation
ssb_demodulated = received_ssb .* exp(-1j * 2 * pi * f_carrier * t);
demodulated_ssb = real(hilbert(ssb_demodulated));
% FM Demodulation
fm_demodulated = fmdemod(received_fm, f_carrier, fs, f_message);
% AM
subplot(4, 2, 1);
plot(t, message_signal);
title('Original Message Signal (AM)');
xlabel('Time (seconds)');
ylabel('Amplitude');
grid on;
subplot(4, 2, 2);
plot(t, demodulated_am);
title('Demodulated AM Signal');
xlabel('Time (seconds)');
ylabel('Amplitude');
grid on;
% DSB-SC
subplot(4, 2, 3);
plot(t, message_signal);
title('Original Message Signal (DSB-SC)');
xlabel('Time (seconds)');
ylabel('Amplitude');
grid on;
subplot(4, 2, 4);
plot(t, demodulated_dsb_sc);
title('Demodulated DSB-SC Signal');
xlabel('Time (seconds)');
ylabel('Amplitude');
grid on;
% SSB
subplot(4, 2, 5);
plot(t, message_signal);
title('Original Message Signal (SSB)');
xlabel('Time (seconds)');
ylabel('Amplitude');
grid on;
subplot(4, 2, 6);
plot(t, demodulated_ssb);
title('Demodulated SSB Signal');
xlabel('Time (seconds)');
ylabel('Amplitude');
grid on;
% FM
subplot(4, 2, 7);
plot(t, message_signal);
title('Original Message Signal (FM)');
xlabel('Time (seconds)');
ylabel('Amplitude');
grid on;
subplot(4, 2, 8);
plot(t, fm_demodulated);
title('Demodulated FM Signal');
xlabel('Time (seconds)');
ylabel('Amplitude');
grid on;
RESULTS :
Conclusion :
Based on the simulation and analysis of the modulation techniques (AM, DSB-SC, SSB, and
FM) in the presence of an AWGN channel, the following conclusions can be drawn regarding
their performance:
In summary, the choice of modulation technique depends on the specific requirements of the
communication system. If bandwidth efficiency and power conservation are priorities, SSB is
the optimal choice. However, for applications demanding high robustness to noise, FM stands
out as the best performing modulation technique.