Data Driven Fitting with MATLAB