diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /3161/CH15 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '3161/CH15')
-rw-r--r-- | 3161/CH15/EX15.1/Ex15_1.sce | 40 | ||||
-rw-r--r-- | 3161/CH15/EX15.2/Ex15_2.sce | 21 | ||||
-rwxr-xr-x | 3161/CH15/EX15.3/Ex15_3.sce | 16 |
3 files changed, 77 insertions, 0 deletions
diff --git a/3161/CH15/EX15.1/Ex15_1.sce b/3161/CH15/EX15.1/Ex15_1.sce new file mode 100644 index 000000000..be26fcd6e --- /dev/null +++ b/3161/CH15/EX15.1/Ex15_1.sce @@ -0,0 +1,40 @@ +clc;
+//page 764
+//problem 15.1
+
+//Signal Power data rate fb = 100 Kbps
+fb = 10^5;
+
+//Signal Strength Ps = 1 mW
+Ps = 1*10^(-3);
+
+//Chip frequency fs = 100 MHz
+fs = 10^8;
+
+//Noise Spectral Density n = 2*10^(-9) W/Hz
+n = 2*10^(-9);
+
+//Jamming Signal power is Pj = 1 W
+Pj = 1;
+
+//Processing Gain P
+P = fs/fb;
+disp('Processing Gain is '+string(P));
+
+//Bit Interval T
+T = 1/fb;
+disp('Bit Interval is '+string(T)+'s');
+
+//Energy per bit Eb
+Eb = Ps*T;
+disp('Energy per bit is '+string(Eb));
+
+//Error Probability without jamming E_without_jamming
+E_without_jamming = 0.5*erfc((Eb/(n))^0.5);
+disp('Error probability without jamming is '+string(E_without_jamming));
+
+//Error Probability with jamming E_jamming
+E_jamming = 0.5*erfc(((2*Ps*P)/(Pj))^0.5);
+disp('Error probability jamming is '+string(E_jamming));
+
+
diff --git a/3161/CH15/EX15.2/Ex15_2.sce b/3161/CH15/EX15.2/Ex15_2.sce new file mode 100644 index 000000000..fb437e618 --- /dev/null +++ b/3161/CH15/EX15.2/Ex15_2.sce @@ -0,0 +1,21 @@ +clc;
+//page 764
+//problem 15.2
+
+//Chip Rate fc = 110 MHz
+fc = 10*10^6;
+Tc = 1/fc;
+
+//Delay D = 0.1 ms
+D = 0.1*10^-3;
+
+//Speed of light c = 3*10^8 Kmps
+c = 3*10^8;
+
+//Estimated Distance d
+d = 0.5*c*D;
+
+//Tolerance Tol
+Tol = 0.5*c*Tc;
+
+disp('The target is between '+string(d-Tol)+' metres and '+string(d+Tol)+' metres of the source.');
diff --git a/3161/CH15/EX15.3/Ex15_3.sce b/3161/CH15/EX15.3/Ex15_3.sce new file mode 100755 index 000000000..b64f0375e --- /dev/null +++ b/3161/CH15/EX15.3/Ex15_3.sce @@ -0,0 +1,16 @@ +clc;
+//page 769
+//problem 15.3
+
+//Number of Flip Flops N
+N = 13;
+
+//Maximal length of sequence L
+L = 2^N - 1;
+
+//Upper Bound S
+S = (L - 1)/N;
+
+//No of basic sequences and mirror images
+disp('No of basic sequences and mirror images is '+string(S/2)');
+
|