|Subject:||Re: Help in leasqr|
|Date:||Fri, 26 Aug 2016 16:51:07 +0200|
|User-agent:||Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0|
Am 26.08.2016 um 12:17 schrieb Bharath R:
Function: g=@(x,p) [(p(1).*p(2).*x(:,1)+(p(3).*x(:,2))+(p(4)*p(5)))./((p(1)*p(2))+p(3))]
Elaborating on what Dmitri wrote: p(1) and p(2) appear only two times in your function and in both cases they are multiplied with each other. Replace them with a single parameter, there is no way to get the values of both of them by regression!
Substituting p(1)*p(2) with just p(1), the initial guess pin(1) by the product of the old pin(1) and pin(2) and increasing the maximum number of iterations to 50 I achieve convergence:
f is indeed g calculated with the last set of parameters.
|[Prev in Thread]||Current Thread||[Next in Thread]|