You are on page 1of 1

clc;

clear all;
close all;
t=0:0.001:1;
x=input('enter frequency of modulating signal');
y=input('enter frequency of carrier signal');
a=zeros(1,length(t));
a=sin(2*pi*x*t);
b=zeros(1,length(t));
b=cos(2*pi*y*t);
subplot(3,1,1);
plot(t,a);
title('frequency of modulating signal');
subplot(3,1,2);
plot(t,b);
title('frequency of carrier signal');
z=a.*b;
subplot(3,1,3);
plot(t,z);
title('frequency of modulated signal');

You might also like