f(x) = a * exp(-b*x)*sin(x)
fit f(x) ´data.dat´ using 1:2 via a, b
should work
soko wrote:
>
> hello,
>
> I am trying to make a curve-fit, but I get always an error message. I have
> a file with about 750 x and y data in two rows. When I plot this, it looks
> like a sinus ring wave. Now i would like to fit this one. I have been
> going this way:
>
> f(x) = a * exp(-b*x)*sin(x)
> f(x) = fit f(x) ´data.dat´ using 1:2 via a, b
>
> but then I always get the message "undefined value during function
> evaluation".
> I don´t know where the error is.
>
> Can somebody help me?
> Thanks
>
--
View this message in context: http://www.nabble.com/making-a-curve-fit-with-gnuplot-tp23027112p23036761.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|