"flying" wrote in message <firstname.lastname@example.org>... > Hi all, > I have ecountered a problem recently.It's something about 'complex nonlinear least square'. For instance,we want to minimize object function > y = min|3+4i - x^2|^2 ,where i = sqrt(-1),x is a variable > How can i get 'x' by using matlab function 'lsqnonlin'? > If there are more variables,how can i figure this out? > > Anticipating your reply,thanks! > > Sincerely > Frank >
Hint: |a+i*b|^2 = a^2 + b^2 for real numbers a and b.