08-Jan-2022 09:41:35 sort_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 Test sort(). SORT_TEST01 Sort a vector V, and correspondingly sort a matrix M. Vector V: 1: 0.6986 2: 0.234 3: 10.9753 4: 0.8894 5: 0.0004 Matrix A: Col: 1 2 3 4 5 Row 1 : -0.053 -0.0884 0.4307 0.8839 0.1503 2 : -0.1961 -0.7322 0.4309 -0.2207 -0.437 3 : 0.7467 0.3098 0.4617 -0.089 -0.3539 4 : 0.0798 -0.1023 0.473 -0.3701 0.789 5 : -0.6283 0.5913 0.438 -0.1585 -0.1968 Product A*V: 1: 5.45555 2: 4.22446 3: 5.58214 4: 4.89428 5: 4.36557 Sorting index VI: 1: 5 2: 2 3: 1 4: 4 5: 3 Sorted vector VS: 1: 0.0004 2: 0.234 3: 0.6986 4: 0.8894 5: 10.9753 Sorted matrix AS: Col: 1 2 3 4 5 Row 1 : 0.1503 -0.0884 -0.053 0.8839 0.4307 2 : -0.437 -0.7322 -0.1961 -0.2207 0.4309 3 : -0.3539 0.3098 0.7467 -0.089 0.4617 4 : 0.789 -0.1023 0.0798 -0.3701 0.473 5 : -0.1968 0.5913 -0.6283 -0.1585 0.438 Product AS*VS: 1: 5.45555 2: 4.22446 3: 5.58214 4: 4.89428 5: 4.36557 sort_test(): Normal end of execution. 08-Jan-2022 09:41:35