summaryrefslogtreecommitdiff
path: root/3542/CH9/EX9.4/Ex9_4.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3542/CH9/EX9.4/Ex9_4.sce
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 '3542/CH9/EX9.4/Ex9_4.sce')
-rw-r--r--3542/CH9/EX9.4/Ex9_4.sce29
1 files changed, 29 insertions, 0 deletions
diff --git a/3542/CH9/EX9.4/Ex9_4.sce b/3542/CH9/EX9.4/Ex9_4.sce
new file mode 100644
index 000000000..afe152911
--- /dev/null
+++ b/3542/CH9/EX9.4/Ex9_4.sce
@@ -0,0 +1,29 @@
+// Example no 9.4
+// To find a)the time duration of a bit b)the time duration of a slot c)the time duration of a frame d)how long must a user occupying single time slot wait between two successive transmission
+// Page no. 456
+
+clc;
+clear all;
+
+// Given data
+N=8; // Number of time slots in each frame
+Nb=156.25; // Number of in each time slot
+DR=270.833*10^3; // Data rate of transmission in channel
+
+// a)To find the time duration of a bit
+Tb=1/DR; // The time duration of a bit in sec
+
+// b)To find the time duration of a slot
+Tslot=Nb*Tb; // The time duration of a slot
+
+// c)To find the time duration of a frame
+Tf=N*Tslot; // The time duration of a frame
+
+//d) The waiting time between two successive transmission
+Tw=Tf; // The arrival time of new frame for its next transmission
+
+// Displaying the result in command window
+printf('\n The time duration of a bit = %0.3f microseconds',Tb*10^6);
+printf('\n The time duration of a slot = %0.3f ms',Tslot*10^3);
+printf('\n The time duration of a frame = %0.3f ms',Tf*10^3);
+printf('\n The arrival time of new frame for its next transmission = %0.3f ms',Tw*10^3);