0% found this document useful (0 votes)
33 views1 page

Am Generation

This document defines the parameters and equations for amplitude modulation (AM) of a message signal onto a carrier signal. It defines the input parameters including the carrier and message signal amplitudes and frequencies, modulation index, and time period. It then generates the message, carrier, and modulated signals as functions of time over 1000 time steps and plots each signal separately with labels for the time, amplitude, and title of each subplot.

Uploaded by

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

Am Generation

This document defines the parameters and equations for amplitude modulation (AM) of a message signal onto a carrier signal. It defines the input parameters including the carrier and message signal amplitudes and frequencies, modulation index, and time period. It then generates the message, carrier, and modulated signals as functions of time over 1000 time steps and plots each signal separately with labels for the time, amplitude, and title of each subplot.

Uploaded by

ravi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 1

Ac=input('enter carrier signal amplitude');

Am=input('enter message signal amplitude');


fc=input('enter carrier frequency');
fm=input('enter message frequency');% fm<fc
m=input('enter modulation index');
t=input('enter time period');
t1=linspace(0,t,1000);
y1=sin(2*pi*fm*t1); % message signal
y2=sin(2*pi*fc*t1); % carrier signal
eq=(1+m.*y1).*(Ac.*y2);
subplot(311);
plot(t1,y1);
xlabel('Time');
ylabel('Amplitude');
title('Message signal')
subplot(312)
plot(t1,y2);
xlabel('Time');
ylabel('Amplitude');
title('Carrier signal');
subplot(313);
plot(t1,eq);
plot(t1,eq,'r');
xlabel('Time');
ylabel('Amplitude');
title('Modulated signal');

take Ac=1 Am=1 fc=50 fm=5 t=1 m=

You might also like