"eric" wrote in message <ko7493$1ul$
1...@newscl01ah.mathworks.com>...
> Thank you Torsten,
> Still trying your recommendation with lsqnonlin for 8 equations and 4 unknowns but still the weird noisy results appear...
=========
Some observations. If I define
ex=exp(1i*x)
ey=exp(1i*y)
ez=exp(1i*z)
er=exp(1i*(-r))
Ka=- exp(1i*A)
Kb=- exp(1i*B)
Kc=- exp(1i*C)
then your equations can be rewritten
0= ex +Ka*er
0= ey +Kb*er
0= ez +Kc*er
0 = D*ex + E*ey - F*ez
this is a linear system of equations in ex, ey, ez, er. If it is a nonsingular system, then inverting it leads to
ex=ey=ez=er=0
which is impossible to satisfy since ex, ey, ez, er all lie on the unit circle in the complex plane. A minimum norm solution would therefore be any x,y,z,r. This may be why you get non-sensical-looking solutions.