summaryrefslogtreecommitdiff
path: root/2414/CH7/EX7.19
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2414/CH7/EX7.19
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2414/CH7/EX7.19')
-rwxr-xr-x2414/CH7/EX7.19/Ex7_19.sce28
1 files changed, 28 insertions, 0 deletions
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 ');