I have a two matrix
A=[ 1 2 3; 2 1 4; 1 3 2; ]
and
B=[1 2 3]
i want the output matrix like,
C =[1 2 3;1 2 4; 1 2 3]
how to get this output. The matrix A is sorted according to the matrix B.
Thanks.
sortsort matrix
A=[ 1 2 3; 2 1 4; 1 3 2; ]
B=[1 2 3]
C =[1 2 3;1 2 4; 1 2 3]
Best Answer