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 /1619/CH2/EX2.2.7/Example2_2_7.sce | |
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 '1619/CH2/EX2.2.7/Example2_2_7.sce')
-rwxr-xr-x | 1619/CH2/EX2.2.7/Example2_2_7.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/1619/CH2/EX2.2.7/Example2_2_7.sce b/1619/CH2/EX2.2.7/Example2_2_7.sce new file mode 100755 index 000000000..49e544910 --- /dev/null +++ b/1619/CH2/EX2.2.7/Example2_2_7.sce @@ -0,0 +1,16 @@ +//Example 2.2.7 page 2.9
+
+clc;
+clear;
+z= 10;
+p0= 100*10^-6; // input power
+pz=5*10^-6; //output power
+alpha = 10*log10(p0/pz); //total attenuation
+printf("The overall signal attenuation is %.2f dB",alpha);
+alpha = alpha/z; // attenuation per km
+printf("\n\nThe attenuation per Km is %.2f dB/Km",alpha);
+z_new = 12;
+splice_attenuation = 11*0.5;
+cable_attenuation = alpha*z_new;
+total_attenuation = splice_attenuation+cable_attenuation;
+printf("\n\nThe overall signal attenuation for 12Kms is %.1f dB",total_attenuation);
|