|
From: Miguel Rubio-R. <mru...@gm...> - 2011-11-29 21:15:07
|
> > Can I define multiple ranges for the fit function? That is, if my xrange is >> [1:100] and I want to fit [1:10] and [20:100] but exclude [10:20]. > > > you may exclude data from the fit with the 'using' option: > > fit [1:100] f(x) 'datafilename' using ($1>10&&$1<20?0/0:$1):2 via ... > Great! Thanks a lot. Maybe a reference to this use of using + ternary operator could be placed in the "range" documentation, as it probably is the first place people will look for when trying to do this. That's what I did, at least... Thanks again Miguel -- *RefCruncher* is a web app that lets you quickly find scientific articles based on citations in referring articles. http://www.refcruncher.com |