summaryrefslogtreecommitdiff
path: root/3446/CH11/EX11.4/Ex11_4.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3446/CH11/EX11.4/Ex11_4.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/CH11/EX11.4/Ex11_4.sce')
-rw-r--r--3446/CH11/EX11.4/Ex11_4.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/3446/CH11/EX11.4/Ex11_4.sce b/3446/CH11/EX11.4/Ex11_4.sce
new file mode 100644
index 000000000..ddecf7818
--- /dev/null
+++ b/3446/CH11/EX11.4/Ex11_4.sce
@@ -0,0 +1,25 @@
+// Exa 11.4
+// To calculate-
+//(a) data symbol transmitted per hop, and
+//(b) the number of nonoverlapping hop frequencies.
+
+clc;
+clear all;
+
+R=120; //transmission rate in kbps
+Hop=2000; //per second
+Spectrum=10; //in MHz
+
+//solution
+//For 32-FSK
+Bits_sym=log2(32);
+SR=R/Bits_sym;
+printf('Bits per symbol are %d \n ',Bits_sym);
+printf('Hops per second are 2000 and Symbol rate is %d kbps\n ',SR);
+disp("Since the symbol rate is higher than the hop rate, the system is a slow FHSS system.");
+Sym_hop=SR*10^3/Hop;
+Min_BW=Sym_hop*SR;
+Nonoverlap_hop=Spectrum*10^3/Min_BW;
+disp("");
+printf(' Symbols transmitted per hop are %d \n ',Sym_hop);
+printf('Number of non-Overlapping hop frequencies are %d \n ',round(Nonoverlap_hop));