summaryrefslogtreecommitdiff
path: root/3822/CH11/EX11.4/Ex11_4.sce
blob: 9fa7e203ac7785018fd1f2d8415c1d4eb9b91140 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

//OptoElectronics and Fibre Optics Communication, by C.K Sarkar and B.C Sarkar
//Example 11.4
//OS=Windows 10
////Scilab version Scilab 6.0.0-beta-2(64 bit)
clc;
clear;

//given

BR=[0.5e6 10e6 100e6 1000e6]//data rate in bps

for i=1:4
Lmax1(i)=6.757e10/BR(i)//Material dispersion limited distance in m
Lmax2(i)=4.2e10./BR(i)//modal limited distance in m
Lmax3(i)=(55-20*log10(BR(i)))//attenuation limited distance in m
end
BR=[0 1 2 3]
plot((BR)/1e6,Lmax1/1e4,'--')
plot((BR)/1e6,Lmax2/1e4)
//plot(log10(BR),(10^(Lmax3)/1e6)'-.-.')
xtitle( 'Link Length Versus Data Rate', 'Data Rate (Mb/s)', 'Link Length(Km)',  boxed = %t );
hl=legend(['Lmax1';'Lmax2']);