Subversion Repositories svnkaklik

Rev

Rev 1055 | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
1055 kaklik 1
set terminal png
1056 kaklik 2
set output "chodba_utlum.png"
1055 kaklik 3
 
4
set xlabel "vzdalenost [m]"
5
set ylabel "intenzita signalu [dBm]"
6
 
7
#f(x) = Lo + 10*n*log(x/d0) + a
8
g(x) = k*x + a
9
q(x) = j*x + b
10
h(x) = l*x + c
11
 
1056 kaklik 12
 
1055 kaklik 13
fit g(x) "chodba1" using (-30.0/151.0 * $1+31.0):($3) via k,a
1056 kaklik 14
#fit h(x) "chodba3" using (-30.0/111.0 * $1+30.0):($3) via l,c
1055 kaklik 15
 
1056 kaklik 16
set xrange [1:50]
1055 kaklik 17
 
1056 kaklik 18
l=k
19
c=a - 3*0.65
1055 kaklik 20
 
21
 
1056 kaklik 22
plot "chodba1" using (-30.0/151.0 * $1+31.0):($3) with points title "1.pokus", "chodba2" using (-30.0/126.0 * $1+30.0):($3) with points title "2.pokus", "chodba3" using (-30.0/111.0 * $1+30.0):($3) with points title "3.pokus", g(x) title "mean", h(x) "90 probability treshold" 
1055 kaklik 23
 
24
 
1056 kaklik 25
set autoscale x
26
 
27
fit q(x) "mistnost1" using (-12.0/58.0 * $1+17.0):($3) via j,b
28
 
1055 kaklik 29
set output "mistnost.png"
1056 kaklik 30
plot "mistnost1" using (-12.0/58.0 * $1+17.0):($3) with points notitle, q(x) 
1055 kaklik 31
 
1056 kaklik 32
 
33
set xlabel "cas [s]"
34
set ylabel "intenzita signalu [dBm]"
35
 
36
bin(x,size) = floor(1.0*x/size)*size
37
 
38
set output "chodba_braun.png"
39
plot "Chodba_s_lidmi.dat" using (0.2 * $1):($3) with points notitle 
40
set output "chodba_braun_rozdeleni.png"
41
plot "Chodba_s_lidmi.dat" using (bin($3, 1.0)):($3) with boxes notitle 
42
 
43
 
44