|
From: <pl...@pi...> - 2012-01-16 18:36:31
|
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?
regards, Peter.
|