% Dear user!
% I have A and B matrices as below
A=[1;2;3;4;5];B=[12;14;18;16;10];C=[A B];% I want to create a D matrix sorting the second column of C matrix as
% below:
D=[5 10;1 12;2 14;4 16;3 18];% How can I do it? Thank for your help?
MATLAB: To sort a matrix
arraymatrixsort
Best Answer