summaryrefslogtreecommitdiff
path: root/1409/CH1
diff options
context:
space:
mode:
Diffstat (limited to '1409/CH1')
-rw-r--r--1409/CH1/EX1.1/1_1.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/1409/CH1/EX1.1/1_1.sce b/1409/CH1/EX1.1/1_1.sce
new file mode 100644
index 000000000..e6f78b5f9
--- /dev/null
+++ b/1409/CH1/EX1.1/1_1.sce
@@ -0,0 +1,24 @@
+clc;
+//Page no:1-21
+//Example-1.1
+//Given bandwidth of each message is 4kHz, number of quantum levels are 256 and pulse allocation width of 0.625 micro sec
+//Let no of quantum levels be Q
+//Number of pulses used in one group is denoted by P
+Q=256;
+P=log2(Q);
+//Let time for each pulse group be T
+//Let pulse duration is denoted by d
+d=0.625;
+T=d*P;
+//Let sampling frequency be S
+fm=4;
+S=2*fm;
+//Time period between two samples be t
+t=(1*10^3)/S;
+//Total number of messages be tot
+tot=t/T;
+disp(P,'Number of pulses used in one group=');
+disp(+'micro sec',T,'Time for each pulse group=');
+disp(+'kHz',S,'Sampling frequency=');
+disp(+'micro sec',t,'Time period between two samples=');
+disp(tot,'Total number of messages which can be transmitted=');