This document was uploaded by user and they confirmed that they have the permission to share
it. If you are author or own the copyright of this book, please report to us by using this DMCA
report form. Report DMCA
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');