summaryrefslogtreecommitdiff
path: root/3446/CH8/EX8.3
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3446/CH8/EX8.3
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/CH8/EX8.3')
-rw-r--r--3446/CH8/EX8.3/Ex8_3.sce38
1 files changed, 38 insertions, 0 deletions
diff --git a/3446/CH8/EX8.3/Ex8_3.sce b/3446/CH8/EX8.3/Ex8_3.sce
new file mode 100644
index 000000000..43e6a72fb
--- /dev/null
+++ b/3446/CH8/EX8.3/Ex8_3.sce
@@ -0,0 +1,38 @@
+// Exa 8.3
+// To demostrate 4X4 Bit interleaving/de-interleving.
+
+clc;
+clear all;
+
+BitStream= [0 0 0 0 0 1 1 1 0 0 0 1 0 0 0 1];//Last bit to first bit
+
+//solution
+disp("Interleaving is performed by storing the data in a table containing rows and columns at the transmitter. The data is written in rows and transmitted in a vertical direction (according to columns). At the receiver, the data is written and read in the opposite manner. ")
+
+// Interleaver
+ Input1=[1 0 0 0 //Writing data row wise
+ 1 0 0 0
+ 1 1 1 0
+ 0 0 0 0];
+disp("GIven Bit stream is")
+disp(BitStream);
+disp("Input to interleaver is")
+disp(Input1);
+
+Output1=[0 0 0 0 0 1 0 0 0 1 0 0 0 1 1 1]; // Reading data column wise
+disp("Output of interleaver is");
+disp(Output1);
+//De-interleaver
+ Input2=[1 1 1 0 //Writing o/p data row wise
+ 0 0 1 0
+ 0 0 1 0
+ 0 0 0 0];
+ // Let From 6th to 9th bits have Burst Error
+ disp("Input to de-interleaver is");
+ disp(Input2);
+ //Output of deinterleaver
+
+Output2= [0 0 0 0 0 1 1 1 0 0 0 1 0 0 0 1];
+disp("Output of de-interleaver is")
+disp(Output2);
+disp( "Bits with Burst error were from 6th to 9th. But in output of de-interleaver, they relocated to positions 3rd, 6th, 10th and 14th.");