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...
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!