Fitting 2: Capturing the ‘Soul Curve’ of Data with MATLAB
MATLAB provides two functions for nonlinear least squares fitting: lsqcurvefit and lsqnonlin. Both commands require the creation of an M-file fun.m where the function f(x) is defined, but the way to define f(x) differs between the two. Today, we will explore how they help us uncover the truth behind the data. lsqcurvefit is suitable for … Read more