Scratch work (BEWARE.... modified linear regression scripts for MATLAB)