08-Jan-2022 10:27:47 test_lls_test() MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 Test test_lls(). test_lls_test00 Try MATLAB's A\b solver on the data. Number of problems = 6 Index M N ||B|| ||X1-X2|| ||X1|| ||X2|| ||R1|| ||R2|| 1 5 3 6.205 2.861e-08 5.461 5.461 1.075 1.075 2 6 3 537.6 5.416e-05 194.8 194.8 5.222 5.222 [Warning: Rank deficient, rank = 2, tol = 2.470090e-14.] [> In test_lls_test00 (line 47) In test_lls_test (line 28) In run (line 91) ] 3 5 3 40.37 0.1361 10.84 10.84 5.477e-07 0 4 3 5 232.1 10.37 7.416 12.75 0 1.954e-14 5 10 10 1 1461 1.534e+07 1.534e+07 1.507e-10 2.261e-10 6 10 10 1 5.118e-16 1 1 4.971e-16 2.554e-16 test_lls_test01 Get each least squares test and compute the maximum residual. The L2 norm of the residual MUST be no greater than the L2 norm of the right hand side, else 0 is a better solution. Number of problems = 6 Index M N ||B|| ||X|| ||R|| 1 5 3 6.205 5.461 1.075 2 6 3 537.6 194.8 5.222 3 5 3 40.37 10.84 5.477e-07 4 3 5 232.1 7.416 0 5 10 10 1 1.534e+07 1.507e-10 6 10 10 1 1 4.971e-16 test_lls_test(): Normal end of execution. 08-Jan-2022 10:27:48