summaryrefslogtreecommitdiff
path: root/3446/CH9/EX9.3/Ex9_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '3446/CH9/EX9.3/Ex9_3.sce')
-rw-r--r--3446/CH9/EX9.3/Ex9_3.sce45
1 files changed, 45 insertions, 0 deletions
diff --git a/3446/CH9/EX9.3/Ex9_3.sce b/3446/CH9/EX9.3/Ex9_3.sce
new file mode 100644
index 000000000..9ade54732
--- /dev/null
+++ b/3446/CH9/EX9.3/Ex9_3.sce
@@ -0,0 +1,45 @@
+// Exa 9.3
+// To calculate final phase for the pi/4-DQPSK modulation method.
+
+clc;
+clear all;
+
+B=['00','10','01','11','01','00','11','10','10','01','01','00'];//Given Bit stream
+
+//solution
+disp("Phase transition table for pi/4-DQPSK Modulation is given as ")
+disp(" By Referring Table 9.1 on page No 266 i.e");
+disp("Symbol Phase transition")
+disp("00 => 45°");
+disp("01 => 135°");
+disp("10 => -45°");
+disp("11 => -135°");
+disp("");
+disp("sym Dell phi(k) Phi(k)")
+//BitStream='001001110100111010010100';
+
+phase=0; //Taking initial phase as zero
+for i=1:12
+
+
+ if(B(i)=='00')
+ phase=phase+45;
+ printf(' %s 45 %d \n',B(i),phase);
+ end
+
+ if(B(i)=='01')
+ phase=phase+135;
+ printf(' %s 135 %d \n',B(i),phase);
+ end
+ if(B(i)=='10')
+ phase=phase-45;
+ printf(' %s -45 %d \n',B(i),phase);
+ end
+ if(B(i)=='11')
+ phase=phase-135;
+ printf(' %s -135 %d \n',B(i),phase);
+
+end
+end
+disp("");
+printf('final phase for the pi/4-DQPSK modulation method for given bitstream is %d degree\n',phase);