blob: 6167749039ba7b1ef295ebe5e600347539f6e6c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Example 10.6.1 page 10.28
clc;
clear;
V2=12;
V1=2.5;
L2=3;
L1=0.004;
alpha_dB = 10* log10(V2/V1)/(L2-L1);
un = 0.2/(L2-L1);
printf("\nAttenuation is %.2f dB/km\nUncertainity +/- %.3f dB.",alpha_dB,un);
//answer for attenuation in the book is 2.26 deviation of 0.01 and for uncertaininty is 0.066 deviation of 0.001
|