Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1197

FIT A DATAFILE THROUGH ANOTHER DATAFILE

From Roberto Guerra IDV Novi <cipitaua@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject FIT A DATAFILE THROUGH ANOTHER DATAFILE
Date 2012-06-11 06:27 -0700
Organization http://groups.google.com
Message-ID <3c8bd4d3-6360-4e6b-b830-09db7c44bf46@5g2000vbf.googlegroups.com> (permalink)

Show all headers | View raw


Hi,

I have a curve in a datafile that is supposed to be the weighted sum
of other two curves. I wish to find the coefficients for such sum so
that curve1=curve2*a+curve3*b.
I tried with the following fit:

 fit 0.0 "< paste curve1.dat curve2.dat curve3.dat" u 1:($2-$4*a-$6*b)
via a,b

but it sticks with the "Singular matrix" error.
Is there any workaround for that?

Thanks in advance,
Roberto

Back to comp.graphics.apps.gnuplot | Previous | NextNext in thread | Find similar


Thread

FIT A DATAFILE THROUGH ANOTHER DATAFILE Roberto Guerra IDV Novi <cipitaua@gmail.com> - 2012-06-11 06:27 -0700
  Re: FIT A DATAFILE THROUGH ANOTHER DATAFILE Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2012-06-11 21:28 +0200

csiph-web