15-Jan-2019 12:06:15 LLSQ_TEST MATLAB version Test LLSQ. 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_TEST02 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 = 1.15643 * x + 0.591992 I X Y B+A*X |error| 1 1.618999 2.483935 2.464256 -0.019679 2 1.131916 1.538756 1.900977 0.362222 3 0.861953 1.269139 1.588783 0.319644 4 0.918491 1.444222 1.654165 0.209943 5 1.173778 1.868922 1.949388 0.080466 6 0.239291 0.878622 0.868716 -0.009906 7 1.067921 1.480456 1.826971 0.346516 8 2.260840 3.610328 3.206502 -0.403826 9 2.423712 4.033772 3.394853 -0.638919 10 0.855097 1.181625 1.580854 0.399230 11 1.983995 2.902879 2.886350 -0.016529 12 2.124179 3.074555 3.048462 -0.026093 13 1.269599 1.844432 2.060198 0.215766 14 1.228298 1.804619 2.012436 0.207817 15 -0.360940 1.201239 0.174588 -1.026651 RMS error = 0.389861 LLSQ_TEST03 LLSQ can compute the formula for a line of the form y = A * x which minimizes the RMS error to a set of N data values. Estimated relationship is y = 0.641657 * x I X Y A*X |error| 1 0.000000 0.000000 0.000000 0.000000 2 0.100000 0.086500 0.064166 -0.022334 3 0.150000 0.101500 0.096249 -0.005251 4 0.200000 0.110600 0.128331 0.017731 5 0.250000 0.127900 0.160414 0.032514 6 0.300000 0.189200 0.192497 0.003297 7 0.350000 0.269500 0.224580 -0.044920 8 0.400000 0.288800 0.256663 -0.032137 9 0.450000 0.242500 0.288746 0.046246 10 0.500000 0.346500 0.320828 -0.025672 11 0.550000 0.322500 0.352911 0.030411 12 0.600000 0.376400 0.384994 0.008594 13 0.650000 0.426300 0.417077 -0.009223 14 0.700000 0.456200 0.449160 -0.007040 RMS error = 0.0251999 LLSQ_TEST Normal end of execution. 15-Jan-2019 12:06:15