MATLAB: How to curve fit a specific non-linear function which passes through 2 fixed points

curve fittingoptimization

I have a set of data points and a curve with 10 parameters. How do i fit in these parameters with the constraint that this curve must always pass through 2 fixed points? Thanks 😀

Best Answer

Hello Anantha Narayanan Suresh Babu:
The question has been raised already. You can find the question and answers here:
If your target function is polynomial you might want to try "polyfix" from File Exchange:
If you have a custom function you might look into fmincon and formulate an optimization problem:
Kind regards,
Robert