Creating a matrix based on sorted values from another matrix
2 views (last 30 days)
I have matrix A, 1X5, and matrix B, 1X5
% Matrix A
% Matrix B
I want to create matrx C, 2X5 as shown below,
% Matrix C 2X5
That is, to sort the data of matrix A in ascending order but at the same time have the corresponding value from matrix B. For example 0.0012 corresponds to 40.5 and etc. As shown in matrix C. How is this done?