least sqaure example

Click linear.m link to view the file.