Least Square Fitting Matlab Code