Subversion Repositories svnkaklik

Rev

Rev 584 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 584 Rev 585
Line -... Line 1...
-
 
1
set terminal postscript
-
 
2
set samples 2000
-
 
3
set key off
-
 
4
set xlabel "time [s]"
-
 
5
set ylabel "amplitude [1]"
-
 
6
 
-
 
7
set output "osc1.ps"
1
f(x)=a*exp(-d*x)*sin(o*x+fi)+s
8
f(x)=a*exp(-d*x)*sin(o*x+fi)+s
2
s=1913
9
s=1913
3
d=0.1
10
#d=0.1
-
 
11
a=500
4
o=14
12
o=14
-
 
13
fi=pi
-
 
14
 
5
fit f(x) "osc.txt" via a, d,fi, o, s 
15
fit f(x) "osc.txt" using 1:2 via a, d, o,fi ,s 
-
 
16
plot f(x), "osc.txt" using 1:2
-
 
17
pause 1
-
 
18
 
-
 
19
set output "osc2.ps"
-
 
20
f(x)=a*exp(-d*x)*sin(o*x+fi)+s
-
 
21
s=1913
-
 
22
#d=0.1
-
 
23
a=500
-
 
24
o=14
-
 
25
fi=pi
-
 
26
 
-
 
27
fit f(x) "osc2.txt" using 1:2 via a, d, o,fi ,s 
-
 
28
plot f(x), "osc2.txt" using 1:2
-
 
29
pause 1
-
 
30
 
-
 
31
set output "osc3.ps"
-
 
32
f(x)=a*exp(-d*x)*sin(o*x+fi)+s
-
 
33
s=1913
-
 
34
#d=0.1
-
 
35
a=500
-
 
36
o=14
-
 
37
fi=pi
-
 
38
 
-
 
39
fit f(x) "osc3.txt" using 1:2 via a, d, o,fi ,s 
6
plot f(x)  #, "Oscilace_m0.txt" using 1:2
40
plot f(x), "osc3.txt" using 1:2
-
 
41
pause 1
-
 
42
 
-
 
43
!ps2pdf osc.txt
-
 
44
!ps2pdf osc2.txt
-
 
45
!ps2pdf osc3.txt
-
 
46