summaryrefslogtreecommitdiff
path: root/3446/CH6/EX6.8/Ex6_8.sce
blob: 8657dd98acee03caa46fc9274615ff61c0964575 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);