> I've got a few data files (df1,df2,...) and corresponding fixed
> parameters a1,a2,...
> I also have a function, e.g. f(x,a)=a+u+v+.. and some free parameters
> Fitting and plotting with only one set of data isn't a problem:
> fit f(x,a1), 'df1' via u,v,,...
> plot f(x,a1), 'df1'
> But I need to fit u,v,... with the whole data (don't forget a1,a2,..)
> Furthermore I have to plot all data with the referring fitted curve.
> If I am right that is not the same problem Loris Benett had or has. But
> it is more general.
> Is it possible to solve my problem with gnuplot? And how?
of a multi-file data set -- all of the data to be treated as a single
data set must be in the same file.
You don't necessarily need to save the all-data file ... if your system
supports redirection, you might be able to do everything from within
gnuplot. In Unix, for example, if you want to fit all the data in files
named "datafile.nnn", you could use
fit f(x,a1) '< cat datafile.*'
If your files aren't named in a convenient way or you need to pull different
columns from different files, you could write a little program that extracts
the data and writes it to STDOUT and then run it from within the datfile
field in the same way.
I don't know if this helps ...