Set of files that give step by step evolution of a simple least squares problem. The first two just set up and solve the problem in one file. hills2.m differs only in its formatting hills1.m hills2.m Next step is to separate out the least squares solving into a function, so that it can be used for more general problems - that is, ones with more than 3 parameters and 6 observations, and for which the solution corresponds to other experimental setups than the stupid one of finding the best fit for determining the heights of three hills. The function versions experiment_least_squares[1,2,3].m have corresponding test drivers test_hills[1,2,3].m. See their internal comments for what is being changed on each step. test_hills0.m : has a small subtle bug in it. That is corrected in ... test_hills1.m experiment_least_squares1.m test_hills2.m experiment_least_squares2.m test_hills3.m experiment_least_squares3.m For A321 course, Spring 2009.