Rev 584 | Blame | Last modification | View Log | Download
set terminal postscript
set samples 2000
set key off
set xlabel "time [s]"
set ylabel "amplitude [1]"
set output "osc1.ps"
f(x)=a*exp(-d*x)*sin(o*x+fi)+s
s=1913
#d=0.1
a=500
o=14
fi=pi
fit f(x) "osc.txt" using 1:2 via a, d, o,fi ,s
plot f(x), "osc.txt" using 1:2
pause 1
set output "osc2.ps"
f(x)=a*exp(-d*x)*sin(o*x+fi)+s
s=1913
#d=0.1
a=500
o=14
fi=pi
fit f(x) "osc2.txt" using 1:2 via a, d, o,fi ,s
plot f(x), "osc2.txt" using 1:2
pause 1
set output "osc3.ps"
f(x)=a*exp(-d*x)*sin(o*x+fi)+s
s=1913
#d=0.1
a=500
o=14
fi=pi
fit f(x) "osc3.txt" using 1:2 via a, d, o,fi ,s
plot f(x), "osc3.txt" using 1:2
pause 1
!ps2pdf osc.txt
!ps2pdf osc2.txt
!ps2pdf osc3.txt