Subversion Repositories svnkaklik

Rev

Rev 605 | Rev 609 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download

set terminal postscript
set samples 2000
set key off
set xlabel "Time [s]"
set ylabel "Amplitude [mm]"

f(x)=a*exp(-d*x)*sin((2*pi/T)*x+fi)+s
s=950
d=0.0002
a=390
T=496
fi="-300"

fit f(x) "poloha1A.txt" using 1:2:3 via a,d,T,fi,s

s=950
d=0.0002
a=390
T=496
fi="-300"

set output "poloha2.ps"
fit f(x) "poloha2A.txt" using 1:2:3 via a,d,T,fi,s
plot "poloha2A.txt" using 1:2:3 with errorbars, f(x)

#set output "poloha1.ps"
#fit f(x) "poloha1B.txt" using 1:2:3 via a,d,T,fi,s
#plot "poloha1B.txt" using 1:2:3 with errorbars, f(x)

#plot "poloha1A.txt" using 1:2:3 with errorbars, "poloha2A.txt" using 1:2:3 with errorbars, "poloha1B.txt" using 1:2:3 with errorbars, f(x)
#!ps2pdf poloha1.ps
!ps2pdf poloha2.ps