Let say I have a matrix obtained from sort function,
x = [1,1,3;
with 1, 2, and 3 represent sorted values of certain variables in vertical manner alongside each column. I want to have another variable that stores the label of corresponding order.
How can I do this if I have 7 variables that I want to sort in a 7-by-m matrix?