>> llsq_test 09-Mar-2012 14:13:57 LLSQ_TEST MATLAB version Test the LLSQ library. LLSQ_TEST01 LLSQ can compute the formula for a line of the form y = A * x + B which minimizes the RMS error to a set of N data values. Estimated relationship is y = 61.2722 * x + -39.062 Expected value is y = 61.272 * x - 39.062 I X Y B+A*X |error| 1 1.470000 52.210000 51.008158 -1.201842 2 1.500000 53.120000 52.846324 -0.273676 3 1.520000 54.480000 54.071768 -0.408232 4 1.550000 55.840000 55.909933 0.069933 5 1.570000 57.200000 57.135377 -0.064623 6 1.600000 58.570000 58.973543 0.403543 7 1.630000 59.930000 60.811708 0.881708 8 1.650000 61.290000 62.037152 0.747152 9 1.680000 63.110000 63.875317 0.765317 10 1.700000 64.470000 65.100761 0.630761 11 1.730000 66.280000 66.938927 0.658927 12 1.750000 68.100000 68.164371 0.064371 13 1.780000 69.920000 70.002536 0.082536 14 1.800000 72.190000 71.227980 -0.962020 15 1.830000 74.460000 73.066145 -1.393855 RMS error = 0.706662 LLSQ_TEST Normal end of execution. 09-Mar-2012 14:13:57 >>