Exclude points in a surface fit with lsqcurvefit

2 views (last 30 days)
Hi,
Is it possible to exclude points in a 2-D fit when using the function lsqcurvefit?
If it is possible, what syntax could I use to achieve this?
Thanks, David

Accepted Answer

David
David on 7 Jun 2018
If anyone is interested how I solved this: I used the "fit" function instead and created a weighting function where I weighted my excluded points with 0 and my non excluded points with 1.
I'm not sure now why I was using "lsqcurvefit" at all...
  1 Comment
Au.
Au. on 11 Nov 2020
that's very sad no one answered. It's an interesting thing to know :(

Sign in to comment.

More Answers (0)

Categories

Find more on Get Started with Curve Fitting Toolbox in Help Center and File Exchange

Products


Release

R2017b

Community Treasure Hunt

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

Start Hunting!