Sunday, June 3, 2012

12. Fitting data in a restricted range with Gnuplot

To to this, it is sufficient to use the following command (for example for a linear data fitting: y-ax+b)

> f(x)=a*x+b
> fit f(x) "< awk '{if($1>1 && $1<10) print $0}' data_file.txt" via a,b

No comments:

Post a Comment