This is the famous Galton data on the heights or parents and their children (i.e., where the term "regression" comes from). The data are public domain and can be used for teaching or any other purpose
Diverse codes in Matlab. No wheel re-invented here, but it might help users save 15 minutes here and there. - linReg.m: Performs simple linear regression between X and Y using least square fit and