-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unique() changes input order #3174
Comments
I'm unclear what this issue means. What's the problem here? |
I'm not sure if this is an issue or not.
I notice it because I was using |
In my particular case, I was doing something like:
And waiting for
Instead of
|
In this case But #1845 can be very useful in this case. For now I'm using ( #550 can be useful here for avoid the last line ):
|
I guess it might as well preserve order. |
Thanks Jeff!!! |
Note (for future archaeologists) that this now does not behave like MATLAB's |
The actual definition of unique using
Set
andunion!
change the input order of the array.The text was updated successfully, but these errors were encountered: