diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /401/CH12/EX12.18 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '401/CH12/EX12.18')
-rwxr-xr-x | 401/CH12/EX12.18/Example12_18.jpg | bin | 0 -> 37881 bytes | |||
-rwxr-xr-x | 401/CH12/EX12.18/Example12_18.sce | 37 |
2 files changed, 37 insertions, 0 deletions
diff --git a/401/CH12/EX12.18/Example12_18.jpg b/401/CH12/EX12.18/Example12_18.jpg Binary files differnew file mode 100755 index 000000000..94acccad1 --- /dev/null +++ b/401/CH12/EX12.18/Example12_18.jpg diff --git a/401/CH12/EX12.18/Example12_18.sce b/401/CH12/EX12.18/Example12_18.sce new file mode 100755 index 000000000..4a6b177f6 --- /dev/null +++ b/401/CH12/EX12.18/Example12_18.sce @@ -0,0 +1,37 @@ +//Example 12.18
+//Program to form comparision showing total channel loss against
+//number of nodes for:
+//(i)Bus Distribution System
+//(ii)Star Distribution System
+
+clear;
+clc ;
+close ;
+
+//Given data
+alpha_cr=1; //dB - CONNECTOR LOSS
+alpha_fc=5; //dB/km - FIBER CABLE LOSS
+L_bu=0.1 //m - FIBER LENGTH
+L_tr=10; //dB - ACCESS COUPLER TAP RATIO
+L_sp=3; //dB - SPLITTER LOSS
+L_ac=1; //dB - ACCESS COUPLER INSERTION LOSS
+L_st=0.1; //m - TOTAL FIBER LENGTH IN STAR ARMS
+L_ex=0; //dB - STAR COUPLER EXCESS LOSS
+
+//Bus Distribution System
+N=0:0.01:11;
+Cl_bus=2*alpha_cr+(N-1)*alpha_fc*L_bu+(2*alpha_cr+L_ac)*(N-3)+(2*alpha_cr+L_tr)+L_sp+alpha_cr;
+Hm=abs(Cl_bus);
+figure;
+plot2d(N,Hm,2);
+
+//Star Distribution System
+N=1:0.01:30;
+Cl_star=4*alpha_cr+alpha_fc*L_st+10*log10(N)+L_ex;
+Hm=abs(Cl_star);
+plot2d(N,Hm,5);
+xlabel('Number of Nodes N');
+ylabel('Total Channel Loss Cl(dB)');
+title('CHARACTERISTICS FOR TWO DISTRIBUTION SYSTEMS (BUS AND STAR)');
+xgrid (1);
+h=legend(['LINEAR BUS';'STAR']);
\ No newline at end of file |