Rank: 456688 based on 0 downloads (last 30 days) and 0 file submitted
photo

Amin

E-mail
Company/University
Marburg University

Personal Profile:
Professional Interests:
Signal processing, data extraction

 

Watch this Author's files

 

Comments and Ratings by Amin
Updated File Comments Rating
02 Jan 2014 LMFnlsq - Solution of nonlinear least squares Efficient and stable Levenberg-Marquard-Fletcher method for solving of nonlinear equations Author: Miroslav Balda

Dear Prof. Balda
Happy New Year
I have a question form the LMFnlsq:
Currently I am working on a problem that I should numerically solve a nonlinear equation, that the result will be complex numbers. I googles it and then there are two solution I have found;
One of them is with your code and the other one is with the fminsearch:
I checked the solutions for the simple problem:


clc
clear all
close all

y =@(x) x^2+1;
c =@(x) complex(x(1),x(2));
fx=@(x) abs(y(c(x)));

[x,ssq,cnt] = LMFnlsq(fx,[0.1;1.5])
[sol,fval]=fminsearch(fx,[0.1;1.5])

The results of the above equation are:


x =

-0.0004
1.0009

ssq =

4.1579e-06

cnt =

93

sol =

0.0000
1.0000

fval =

6.7954e-05

I wondering that it is possible to use your code in this case and any special option should be chosen for that?
Thank you very much
Best Regards

Contact us