summaryrefslogtreecommitdiff
path: root/1061/CH10/EX10.6/Ex10_6.sce
blob: 89a80a1759ee2217d2f4d189b1ec8307de028105 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//Ex:10.6
clc;
clear;
close;
Lc=1;// connector loss in db
Ls=5;// star coupler insertion loss in dB
af=2;// fider loss in dB
Ps=-14;// transmitted power in dBm
Pr=-49;// receiver sensitivity in dBm
sm=6;// system margin in dB
N=16;
L=(Ps-Pr-Ls-4*Lc-(10*log(N))/log(10)-sm)/(2*af);//  max transmission length in km when transmission star coupler is used
N1=32;
L1=(Ps-Pr-Ls-4*Lc-(10*log(N1))/log(10)-sm)/(2*af);// max transmission length in km when reflection star coupler is used
printf("The max transmission length when transmission star coupler is used =%f km", L);
printf("\n The max transmission length when reflection star coupler is used =%f km", L1);