0% found this document useful (0 votes)
3 views3 pages

Coding Assignment1

The document is a coding assignment by Riddhi Patel, focusing on amplitude modulation (AM) signals. It includes MATLAB code that generates and plots a message signal, a carrier signal, and the resulting AM signal. The parameters for the signals such as amplitude and frequency are defined within the code.

Uploaded by

priddhi2006
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Coding Assignment1

The document is a coding assignment by Riddhi Patel, focusing on amplitude modulation (AM) signals. It includes MATLAB code that generates and plots a message signal, a carrier signal, and the resulting AM signal. The parameters for the signals such as amplitude and frequency are defined within the code.

Uploaded by

priddhi2006
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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:

You might also like