Would LSQCURVEFIT work with comparing two complex functions? It looks like the metric for success is min sum {(FUN(X,XDATA)-YDATA).^2}, where it should be min sum {abs(FUN(X,XDATA)-YDATA).^2)} for complex-valued functions, or maybe sum {(FUN(X,XDATA)-YDATA).conj((FUN(X,XDATA)-YDATA))} Thanks Matt
MATLAB: Lsqcurvefit
complexlsqcurvefit
Related Question
- Lsqcurvefit question (Function value and YDATA sizes are not equal.)
- Error lsqcurvefit using Function value and YDATA sizes are not equal.
- How to carry out lease square fitting
- Fsolve and complex solution
- This is the code i am getting error with x = simulannealbnd(ObjectiveFunction,X0,ydata,lb,ub). can help me to resolve it
Best Answer