[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible bug?
From: |
mrodrig |
Subject: |
Re: Possible bug? |
Date: |
Thu, 15 Feb 2018 06:33:52 -0700 (MST) |
Dear Olaf,
Thanks for your response.
The function F is the Physic Model that I am try to use, so I canĀ“t change.
I try the following
[P, funcion, cvg] = nonlin_curvefit (F, pin, x, y);
with
pin=[359;58337;1.1;0.9;400;150000;1.1;0.9;460;170000;1.1;0.9; 525; 62456;
1.1;0.9]
and I have the same problem.
error: weighted residuals are not real
Looking in the debug mode, I found that
f = F (p);
r = wt .* f;
r = r(:);
** if (~isreal (r))
error ("weighted residuals are not real");
endif
but if I look in **
but
r =
-7234.132 + 0.000i
-6749.209 + 0.000i
-6268.353 + 0.000i
-5526.880 + 0.000i
-4790.524 + 0.000i
-3608.309 + 0.000i
-2227.055 + 0.000i
.....
Could you help me?
Mauricio
--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html