summaryrefslogtreecommitdiff
path: root/273/CH24/EX24.6/ex24_6.sce
blob: 7027223f9498ca90a33e7af72682e6ba6a56d79a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc;clear;
//Example 24.6
//calculation of power level

//given values
a=3.5;//attenuation in dB/km
Pi=.5*10^-3;//initial power level in W
l=4;//length of cable in km

//calculation
Po=Pi*10^6/(10^(a*l/10));
disp(Po,'power level after km(in microwatt) is');