Amplitude modulation by function | Scigyan

Amplitude modulation by function

Matlab program for Amplitude modulation and demodulation by inbuilt matlab function.

Matlab code

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

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

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

% Amplitude modulated Signal
Sam=ammod(Sm,fm,fc); 
subplot(4,1,3);
plot(t,Sam);
xlabel('Time');
ylabel('Amplitude');
title('Amplitude modulated Signal');

% Amplitude Demodulated Signal
Sadm=amdemod(Sam,fm,fc);
subplot(4,1,4);
plot(t,Sadm);
xlabel('Time');
ylabel('Amplitude');
title('Amplitude Demodulated Signal');

Figure window

Amplitude-modulation-by-function
1 comment:

Related Posts Plugin for WordPress, Blogger...