Saturday, 28 November 2015

HOW TO WRITE MATLAB CODE FOR AMPLITUDE MODULATION?

AMPLITUDE MODULATION:

the modulation of a wave by varying its amplitude, used especially as a means of broadcasting an audio signal by combining it with a radio carrier wave.


CODING:

clc;
clear all;
close all;

Ac=2; %carrier amplitude
fc=0.5; %carrier frequency
Am=.5; %message signal amplitude
fm=.05; %message signal frequency
Fs=100; %sampling rate/frequency

ka=1; %modulation coefficient

t=[0:0.1:50]; %defining the time range & disseminating it into samples
ct=Ac*cos(2*pi*fc*t); %defining the carrier signal wave
mt=Am*cos(2*pi*fm*t); %defining the message signal
AM=ct.*(1+ka*mt); %Amplitude Modulated wave, according to the standard definition

subplot(3,1,1); %plotting the message signal wave
plot(mt);
ylabel('Message signal');

subplot(3,1,2); %plotting the carrier signal wave
plot(ct);
ylabel('carrier');

subplot(3,1,3); %plotting the amplitude modulated wave
plot(AM);
ylabel('AM signal');















             
                                                         Fig: Amplitude Modulation









FOR MORE DETAILS:    CLICK HERE

No comments:

Post a Comment