function fitted_slope_and_intercept=linear_fit(slope_and_intercept,x_data)
%for curve fitting, called by simple_linear_fit

fitted_slope_and_intercept=slope_and_intercept(1)+(slope_and_intercept(2)*x_data);