summaryrefslogtreecommitdiff
path: root/3446/CH6/EX6.8/Ex6_8.sce
diff options
context:
space:
mode:
Diffstat (limited to '3446/CH6/EX6.8/Ex6_8.sce')
-rw-r--r--3446/CH6/EX6.8/Ex6_8.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/3446/CH6/EX6.8/Ex6_8.sce b/3446/CH6/EX6.8/Ex6_8.sce
new file mode 100644
index 000000000..8657dd98a
--- /dev/null
+++ b/3446/CH6/EX6.8/Ex6_8.sce
@@ -0,0 +1,13 @@
+// Exa 6.8
+// To calculate the minimum number of PN chips that are required for each frequency word.
+
+clc;
+clear all;
+
+Bss=600; //Hopping bandwidth in MHz
+stepsize=400; // in Hz
+
+//solution
+No_of_Tones=Bss*10^6/stepsize;
+Min_chips_required=log2(No_of_Tones);
+printf('Minimum number of chips required are %d chips \n ',Min_chips_required);