Coding Assignment-1
Name:- Riddhi Patel
Enrollment no: 240280111128
clc;
close all;
clear all;
m=1;
Am=2; %amplitude of modulating signal
Fm=10; %frequency of modulationg signal
Tm=1/Fm;
t=0:0.001:1;
Fc=95; %amplitude of carrier signal
Ac=4; %amplitude of carrier signal
s = Ac*(1 + m*cos(2*pi*Fm*t)).*cos(2*pi*Fc*t);
subplot(3,1,1);
plot(t,cos(2*pi*Fm*t));
title("Message signal");
subplot(3,1,2);
plot(t,cos(2*pi*Fc*t));
title("Carrier signal");
subplot(3,1,3);
plot(t,s);
title("AM signal");
OUTPUT: