blob: f0745fbd1f3e5390cb3e18ad86c3fe8b52ddc4bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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);
|