summaryrefslogtreecommitdiff
path: root/3822/CH11/EX11.4/Ex11_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3822/CH11/EX11.4/Ex11_4.sce')
-rw-r--r--3822/CH11/EX11.4/Ex11_4.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/3822/CH11/EX11.4/Ex11_4.sce b/3822/CH11/EX11.4/Ex11_4.sce
new file mode 100644
index 000000000..9fa7e203a
--- /dev/null
+++ b/3822/CH11/EX11.4/Ex11_4.sce
@@ -0,0 +1,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']);