summaryrefslogtreecommitdiff
path: root/3543/CH8/EX8.51/EX8_51.sce
blob: 666ef6886baccdfb7524b81dcf020b73f410dadd (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
27
28
29
30
31
32
33
34
35
// Example 7.42
// Calculation of a)Bit rate of communication system  b)Bit duration c)Time period
// Page no 504

clc;
clear;
close;

//Given data
f=8*10^3;                    // Power launched in port 1
P2=0.082*10^-6;              // Power launched in port 2
P3=47*10^-6;                // Power launched in port 3 
P4=52*10^-6;                // Power launched in port 4

// a)Bit rate of communication system
c=32*8;
B=f*c; 
B=B*10^-6;
// b)Bit duration
D=1/B;
D=D*10*10^2;
P=8*D;


// c)Time period
T=32*P;
T=T*10^-3;


//Displaying results in the command window            
printf("\n Bit rate of communication system(in Mb/s) = %0.3f  ",B);
printf("\n Bit duration(in ns) = %0.0f  ",D);
printf("\n Time period(in micro sec)= %0.0f  ",T);

// The answers vary due to round off error