Subversion Repositories svnkaklik

Rev

Rev 605 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 605 Rev 608
Line 1... Line 1...
1
#set terminal postscript
1
set terminal postscript
2
set samples 2000
2
set samples 2000
3
#set output "cavendish.ps"
-
 
4
set key off
3
set key off
5
set xlabel "Time [s]"
4
set xlabel "Time [s]"
6
set ylabel "Amplitude [mm]"
5
set ylabel "Amplitude [mm]"
7
 
6
 
8
f(x)=a*exp(-d*x)*sin((2*pi/T)*x+fi)+s
7
f(x)=a*exp(-d*x)*sin((2*pi/T)*x+fi)+s
Line 11... Line 10...
11
a=390
10
a=390
12
T=496
11
T=496
13
fi="-300"
12
fi="-300"
14
 
13
 
15
fit f(x) "poloha1A.txt" using 1:2:3 via a,d,T,fi,s
14
fit f(x) "poloha1A.txt" using 1:2:3 via a,d,T,fi,s
-
 
15
 
-
 
16
s=950
-
 
17
d=0.0002
-
 
18
a=390
-
 
19
T=496
-
 
20
fi="-300"
-
 
21
 
-
 
22
set output "poloha2.ps"
16
fit f(x) "poloha2A.txt" using 1:2:3 via a,d,T,fi,s
23
fit f(x) "poloha2A.txt" using 1:2:3 via a,d,T,fi,s
-
 
24
plot "poloha2A.txt" using 1:2:3 with errorbars, f(x)
-
 
25
 
-
 
26
#set output "poloha1.ps"
17
fit f(x) "poloha1B.txt" using 1:2:3 via a,d,T,fi,s
27
#fit f(x) "poloha1B.txt" using 1:2:3 via a,d,T,fi,s
-
 
28
#plot "poloha1B.txt" using 1:2:3 with errorbars, f(x)
18
 
29
 
19
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)
30
#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)
20
#!ps2pdf cavedish.ps
31
#!ps2pdf poloha1.ps
-
 
32
!ps2pdf poloha2.ps