Curve Fitting In Matlab Code