
From:  Doug Stewart 
Subject:  Re: Help in leasqr 
Date:  Fri, 26 Aug 2016 10:32:15 0400 
Hello all,Thank you very much for such a helpful forum. I am using Octave for the past couple of days. I have been working to get the parameters that best fit my function.Function: g=@(x,p) [(p(1).*p(2).*x(:,1)+(p(3).*x(:,2))+(p(4)*p(5)))./((p(1)*p( 2))+p(3))] where p indicates the parameters , x indicates the independent variables and y is measured variable.[pin]=1.0000e0021.0000e+0031.0000e+0021.0000e0021.0000e+003[x]=21.33700 0.8000021.28800 0.1000020.55900 0.8000021.21800 1.4000020.68600 1.70000[y] = 19.54519.30019.30019.13719.000When I run this function ([f, p, cvg, iter]=leasqr(x,y,pin,g)) with leasqr function it gives me the following result:CONVERGENCE NOT ACHIEVED!f =19.71019.57818.82719.32618.824p =1.6953e0011.6258e+0034.0087e+0017.8664e0023.9346e+003cvg = 0iter = 20I would like to know what does "f" in result give as output. Is it giving me the output of function "g" after implementing the newly calculated parameters or is it something else? If it is the output of g, then I feel it is relatively closer to the measured data (y). yet it is showing " CONVERGENCE NOT ACHIEVED!".Also , I would like to know how do I implement a differential equation in leasqr to calculate the parameters. I look forward to your answer.Thanks and regards,Bharathy
[Prev in Thread]  Current Thread  [Next in Thread] 