Linear and Polynomial Regression in MATLAB