Amplitude modulation | Scigyan

Amplitude modulation

Matlab program for Amplitude modulation.

Matlab code

clc;
clear all;
close all;
t=0:0.001:1; % Define time axis
A=1;   % Amplitude
fm=2;  % Message Signal frequency
fc=100;  % Carrier Signal frequency

% Message Signal
Sm=A*sin(2*pi*fm*t);
subplot(5,1,1);
plot(t,Sm);
xlabel('Time');
ylabel('Amplitude');
title('Message Signal');

% Carrier Signal
Sc=A*sin(2*pi*fc*t);
subplot(5,1,2);
plot(t,Sc);
xlabel('Time');
ylabel('Amplitude');
title('Carrier Signal');

% Amplitude modulated Signal
Sam=Sm.*Sc;
subplot(5,1,3);
plot(t,Sam);
xlabel('Time');
ylabel('Amplitude');
title('Amplitude modulated Signal');

% Amplitude Demodulated Signal
Sadm=Sam.*Sc;
subplot(5,1,4);
plot(t,Sadm);
xlabel('Time');
ylabel('Amplitude');
title('Amplitude Demodulated Signal');

% Filtering of Amplitude Demodulated Signal
Sfadm=filter([1 4 6 4 1],16,Sadm);
subplot(5,1,5);
plot(t,Sfadm);
xlabel('Time');
ylabel('Amplitude');
title('Filtered Amplitude Demodulated Signal');

Figure window

Amplitude-modulation
No comments:
Post a Comment

Related Posts Plugin for WordPress, Blogger...