MATLAB: Exclude points in a surface fit with lsqcurvefit

curve fittingMATLAB

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

Best 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...
Related Question