A Comprehensive Study with MATLAB Simulations
ANALOG AM AND FM MODULATIONS USING MATLAB
www.azslides.com
INTRODUCTION
IMPORTANCE AND APPLICATIONS
Used in radio, TV broadcasting, and communication systems.
OBJECTIVES
Implement and analyze AM and FM using MATLAB.
01
02
AMPLITUDE MODULATION (AM) THEORY
Definition: AM varies the amplitude of the carrier signal based on the message signal.
Mathematical Expression:
π (π‘)=[1+π(π‘)]β cosβ‘(2ππππ‘)s(t)=[1+m(t)]β cos(2Οfcβt)
AM SIGNAL GENERATION IN MATLAB
% AM Modulated signal
s = (1 + m) .* c;
Message Signal (Example):
% Parameters
fc = 1000; % Carrier frequency
fs = 10000; % Sampling frequency
t = 0:1/fs:0.1; % Time vector
Am = 1; % Amplitude of message signal
Ac = 1; % Amplitude of carrier signal
fm = 100; % Frequency of message signal
% Message signal
m = Am * cos(2*pi*fm*t);
AM Modulated Signal:
% Carrier signal
c = Ac * cos(2*pi*fc*t);
AM SIGNAL VISUALIZATION
MATLAB Code for Plotting:
figure;
subplot(3,1,1);
plot(t, m);
title('Message Signal');
xlabel('Time (s)');
ylabel('Amplitude');
subplot(3,1,2);
plot(t, c);
title('Carrier Signal');
xlabel('Time (s)');
ylabel('Amplitude');
subplot(3,1,3);
plot(t, s);
title('AM Modulated Signal');
xlabel('Time (s)');
ylabel('Amplitude');
AM DEMODULATION
DEMODULATION TECHNIQUES:
MATLAB CODE FOR DEMODULATION:% ENVELOPE DETECTION
DEMODULATED_SIGNAL = ABS(HILBERT(S));
FIGURE;
PLOT(T, DEMODULATED_SIGNAL);
TITLE('DEMODULATED SIGNAL');
XLABEL('TIME (S)');
YLABEL('AMPLITUDE');
FREQUENCY MODULATION (FM) THEORY
matlab
% Parameters
fc = 1000; % Carrier frequency
fs = 10000; % Sampling frequency
t = 0:1/fs:0.1; % Time vector
Am = 1; % Amplitude of message signal
Ac = 1; % Amplitude of carrier signal
fm = 100; % Frequency of message signal
beta = 5; % Modulation index
% Message signal
m = Am * cos(2*pi*fm*t);
FM SIGNAL GENERATION IN MATLAB
MESSAGE SIGNAL (EXAMPLE):
FM SIGNAL VISUALIZATION
MATLAB CODE FOR PLOTTING:
matlab
figure;
subplot(2,1,1);
plot(t, m);
title('Message Signal');
xlabel('Time (s)');
ylabel('Amplitude');
subplot(2,1,2);
plot(t, s);
title('FM Modulated Signal');
xlabel('Time (s)');
ylabel('Amplitude');
% FM Demodulation example using differentiation
demodulated_signal = diff(unwrap(angle(hilbert(s))));
figure;
plot(t(1:end-1), demodulated_signal);
title('Demodulated Signal');
xlabel('Time (s)');
ylabel('Amplitude');
Demodulation Techniques:
FM DEMODULATION
COMPARATIVE ANALYSIS OF AM AND FM
Bandwidth Requirements:
1
2
3
Noise Immunity:
Applications:
SUMMARY OF FINDINGS:
FUTURE WORK:
Do you have any question?
www.azslides.com
THANK YOU