summaryrefslogtreecommitdiff
path: root/3446/CH21/EX21.2/Ex21_2.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3446/CH21/EX21.2/Ex21_2.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3446/CH21/EX21.2/Ex21_2.sce')
-rw-r--r--3446/CH21/EX21.2/Ex21_2.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/3446/CH21/EX21.2/Ex21_2.sce b/3446/CH21/EX21.2/Ex21_2.sce
new file mode 100644
index 000000000..a5dd761ca
--- /dev/null
+++ b/3446/CH21/EX21.2/Ex21_2.sce
@@ -0,0 +1,25 @@
+//Exa 21.2
+// To find-
+//a) the hopping bandwidth,
+//b) What is the chip-rate,
+//c) How many chips are there in each data symbol,
+//d) What is the processing gain.
+
+clc;
+clear all;
+
+Stepsize=200; //in Hz
+Chipsmin=20;//length of linear feedback shift register
+Datarate=1.2*10^3; //bps
+
+//solution
+No_of_tones=2^Chipsmin;
+Bss=No_of_tones*Stepsize;
+Chiprate=Datarate*Chipsmin;
+Gp=Bss/Datarate;//processing gain
+Symbolrate=Datarate/3; //8-ary FSK is used
+Chips_symbol=Chiprate/Symbolrate;
+printf('The Hopping Bandwidth is %.3f MHz\n',Bss/10^6);
+printf(' The chiprate is %d kchip/sec\n',Chiprate/10^3);
+printf(' Chips per symbol are %d \n',Chips_symbol);
+printf(' The processing gain is %.1f\n',Gp);