From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2414/CH7/EX7.19/Ex7_19.sce | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 2414/CH7/EX7.19/Ex7_19.sce (limited to '2414/CH7/EX7.19') diff --git a/2414/CH7/EX7.19/Ex7_19.sce b/2414/CH7/EX7.19/Ex7_19.sce new file mode 100755 index 000000000..d2446049d --- /dev/null +++ b/2414/CH7/EX7.19/Ex7_19.sce @@ -0,0 +1,28 @@ +clc; +close(); +clear(); +//page no 261 +//prob no. 7.19 +//All frequencies in Hz +D=5; //deviation ratio +fc=[400 560 730 960]; //Center frequency +delta_f=0.075 .*fc; //frequency deviation +W=delta_f ./D ; //modulating frequency +Bt=2 .*(delta_f + W); //Bandwidth +fl=fc - Bt/2; //Lower frequency +fh=fc + Bt/2; //Higher frequency +figure +x=[301:1100]; +y=[1.5]; +y=[y zeros(302:fl(1))] +for i=1:3 +y=[y ones(fl(i):fh(i))]; +y=[y zeros(fh(i)+1:fl(i+1))]; +end +y=[y ones(fl(4):fh(4))]; +y=[y zeros(fh(4):1100)]; +plot(x,y); +xtitle('Composite baseband spectrum','f,Hz'); +delta_frt=D*1046; +Brt=2*(delta_frt+1046); +disp('Hz',Brt,'(b) The RF transmission bandwidth is '); -- cgit