For some reason Matlab is ignoring the complex part of the imaginary number in the equation. The equation is squared, so the complex numbers should go away on their own, however, Matlab seems to not be doing this and in the end I receive a 'imaginary parts of X and or Y arguments ignored' error. Any ideas on why this is?
MATLAB: Matlab not squaring imaginary part of complex number.
MATLABmatlab code complex number error
Best Answer