summaryrefslogtreecommitdiff
path: root/3506/CH10/EX10.1/Ex_10_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3506/CH10/EX10.1/Ex_10_1.sce')
-rw-r--r--3506/CH10/EX10.1/Ex_10_1.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/3506/CH10/EX10.1/Ex_10_1.sce b/3506/CH10/EX10.1/Ex_10_1.sce
new file mode 100644
index 000000000..d5cd618e0
--- /dev/null
+++ b/3506/CH10/EX10.1/Ex_10_1.sce
@@ -0,0 +1,12 @@
+//Optical Fiber communication by A selvarajan
+//example 10.1
+//OS=Windows XP sp3
+//Scilab version 5.5.1
+clc;
+clear all;
+Xx=-30//crosstalk in dB
+L=0.3//typical value
+N=5//no. of switches Nb+Nc
+SXR=Xx-L*(N)-10*log10(5*(10^(-L*N/10))/N)//Signal power to noise power in dB
+mprintf('Minimum and maximum SXR values=%fdB',SXR)
+