|
From: Peter J. <pet...@gm...> - 2012-01-17 09:14:36
|
On Tue, Jan 17, 2012 at 3:02 AM, sfeam (Ethan Merritt)
<eam...@gm...> wrote:
> 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.
>
Perhaps the pointer to 'help new-features' could be added to the
splash screen, at least for the first 4.6 series release.
Péter Juhász
|