Subversion Repositories svnkaklik

Compare Revisions

Ignore whitespace Rev 1054 → Rev 1055

/dokumenty/skolni/PDS/data/plot.gp
0,0 → 1,28
set terminal png
set output "chadba_utlum.png"
 
set xlabel "vzdalenost [m]"
set ylabel "intenzita signalu [dBm]"
 
#f(x) = Lo + 10*n*log(x/d0) + a
g(x) = k*x + a
q(x) = j*x + b
h(x) = l*x + c
 
#fit q(x) "chodba2" using (-30.0/126.0 * $1+30.0):($3) via j,b
#fit h(x) "chodba3" using (-30.0/111.0 * $1+30.0):($3) via l,c
 
 
fit g(x) "chodba1" using (-30.0/151.0 * $1+31.0):($3), "chodba2" using (-30.0/126.0 * $1+30.0):($3) via k,a
 
 
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), q(x), h(x)
 
 
set output "chodba_braun.png"
plot "Chodba_s_lidmi.dat" using (-30.0/151.0 * $1+30.0):($3) with points notitle
 
 
set output "mistnost.png"
plot "mistnost1" using (-12.0/58.0 * $1+17.0):($3) with points notitle