%ECOMMS Spring 99 %S. Mandayam, Rowan University %Angle Modulation clear; close all; %definitions t=[0:1e-4:5e-2]; fm=100; fc=1e3; Am=0.8; Dp=5; Df=5; %carrier c=cos(2*pi*fc*t); subplot 511; plot(t,c); ylabel('Carrier'); %message m=sin(2*pi*fm*t); subplot 512; plot(t,m); ylabel('Message'); %AM wave am=c.*(1+Am*m); subplot 513; plot(t,am); ylabel('AM'); %PM wave pm=cos(2*pi*fc*t + Dp*m); subplot 514; plot(t,pm); ylabel('PM'); %FM wave fm=cos(2*pi*fc*t - Df*cos(2*pi*fm*t)); subplot 515; plot(t,fm); ylabel('FM');