|
From: sfeam (E. Merritt) <eam...@gm...> - 2012-01-17 02:02:32
|
On Monday, 16 January 2012, pl...@pi... wrote:
> On 01/16/12 16:41, Peter Juhasz wrote:
> > On Mon, Jan 16, 2012 at 10:50 AM,<pl...@pi...> wrote:
> >> Hi,
> >>
> >> I am wanting to run fit on each section of a long, indexed datafile.
> >> While the symmetry of the syntax between plot and fit means this is
> >> syntactically possible, it is in fact useless since only the final
> >> fitted parameters are retained.
> >> [...]
> >
> > With the soon-to-be-released new version it is possible to do the following:
> >
> > do for [i=0:10] {
> > fit a*x+b 'data.dat' index i via a,b
> > # do whatever you want with a,b, for example
> > eval(sprintf("a_%d=a;b_%d=b",i,i))
> > }
> >
> > Péter Juhász
> > }
> >
>
> Hey , I can already do it !
>
> I have a recent cvs build , I just thought this was still in long term
> future planning. Brilliant.
>
> I see it is under 'help do' but not 'help for'.
>
> gnuplot> help for
> Ambiguous request 'for'; possible matches:
> format
> fortran
>
> Probably helpful to include it there too.
>
> Thanks to the team for including this already , this opens up a word of
> possibilities.
> thanks Péter for bringing me upto date.
>
> Is there any overall documentation for the new block structures or do I
> have to guess the keywords to get individual syntax?
There's an introduction under "help new-features".
The inclusion of a New Features section works better in the printed
docs than it does in the on-line help.
|