Exclude points in a surface fit with lsqcurvefit

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

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

that's very sad no one answered. It's an interesting thing to know :(

Sign in to comment.

More Answers (0)

Categories

Products

Release

R2017b

Asked:

on 6 Jun 2018

Commented:

Au.
on 11 Nov 2020

Community Treasure Hunt

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

Start Hunting!