I have a problem with a curve fitting in gnuplot with my data:
If I use these commands:
plot "sky.txt"
f(x)=A*exp(-(t)/(sin(x)))+B
fit f(x) "sky.txt" u 1:2 via A,t,B
plot "sky.txt", f(x)
Then I get strange results, like errors of +- 1093% When I'm plotting this I get a very strange plot.
This is measured data. I have no idea what's wrong in here. Thank you for help.
... the comment again as answer, according to the StackOverflow "rule": no answers in comments!
You have to set the angles to degrees via: (check help angles
). Default is radians.
set angles degrees