diff options
Diffstat (limited to '3542/CH8/EX8.5/Ex8_5.sce')
-rw-r--r-- | 3542/CH8/EX8.5/Ex8_5.sce | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/3542/CH8/EX8.5/Ex8_5.sce b/3542/CH8/EX8.5/Ex8_5.sce new file mode 100644 index 000000000..f0745fbd1 --- /dev/null +++ b/3542/CH8/EX8.5/Ex8_5.sce @@ -0,0 +1,26 @@ +// Example no 8.5
+// To compute the gross channel data rate
+// Page no. 439
+
+clc;
+clear all;
+
+// Given data
+t=20*10^-3; // Duration of encoding of one block in second
+B1=50; // The first bits in Type-1 channel
+CRC1=10; // Number of CRC bits in Type-1 channel
+FEC=0.5; // FEC rate for Type-1 channel
+B2=132; // Next bits in Type-2 channel
+CRC2=5; // Number of CRC bits in Type-2 channel
+B3=78; // The last bits in Type-3 channel
+
+N1=(B1+CRC1)/FEC; // Total number of bits transmitted in Type-1 channel
+N2=(B2+CRC2); // Total number of bits transmitted in Type-2 channel
+N3=B3; // Total number of bits transmitted in Type-3 channel
+N=N1+N2+N3; // Total number of channel bits transmitted enery t seconda
+
+// The gross channel data rate
+BR=N/t; // The gross channel data rate in bps
+
+// Displaying the result in command window
+printf('\n The gross channel bit rate = %0.2f kbps',BR*10^-3);
|