"Warning: Imaginary parts of complex X and/or Y arguments ignored" in fminserach and optimtool
Show older comments
Dear all,
I am trying to fit a curve to experimental data by use of "optimtool" and "fminsearch".
But I receive a warning which says " Imaginary parts of complex X and/or Y arguments ignored". I have this warning from the first iteration.
Any idea to solve this warning is appreciated. Thanks in advance Best regards Victor
Accepted Answer
More Answers (1)
Sean de Wolski
on 5 Mar 2012
1 vote
Evaluate your function at the initial values you provide. Is the result complex? If so, that's the reason for the warning. We can't be of much more assistance without seeing reproduction steps.
Categories
Find more on Problem-Based Optimization Setup in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!