BUG DESCRIPTION:
----------------
Contrary to what is advertised in the help page, it is impossible to get back the initial order of unique values
HOW TO REPRODUCE THE BUG:
-------------------------
M = [
1. 0.
2. 2.
0. 1.
1. 0.
1. 2.
1. 2.
2. 1.
2. 1.
0. 1.
1. 0.
2. 2.
0. 1.
];
[N,k]=unique(M,'r');
k=gsort(k,'g','i');
M(k,:)
ans =
1. 0.
2. 2.
1. 2.
2. 1.
0. 1.
OTHER INFORMATION:
------------------
the output should be (original order) :
1. 0.
2. 2.
0. 1.
1. 2.
2. 1.
I am no sure that bug #13872 has been really fixed...