Subversion Repositories svnkaklik

Rev

Details | Last modification | View Log

Rev Author Line No. Line
585 kaklik 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"
584 kaklik 8
f(x)=a*exp(-d*x)*sin(o*x+fi)+s
9
s=1913
585 kaklik 10
#d=0.1
11
a=500
584 kaklik 12
o=14
585 kaklik 13
fi=pi
14
 
587 kaklik 15
fit f(x) "osc1.txt" using 1:2 via a, d, o,fi ,s 
16
plot f(x), "osc1.txt" using 1:2
585 kaklik 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 
40
plot f(x), "osc3.txt" using 1:2
41
pause 1
42
 
587 kaklik 43
!ps2pdf osc1.ps
44
!ps2pdf osc2.ps
45
!ps2pdf osc3.ps
585 kaklik 46