How do I curve fit a specific non-linear function which passes through 2 fixed points?

8 views (last 30 days)
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 :D

Accepted Answer

Robert U
Robert U on 7 Jun 2018
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

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!