Remove commented out warning lines
Modify the call to unique to not use the 'stable' flag because it's not present in versions of MATLAB prior to 2012a. This approach should still give the unique values of the array in the original order in which they were presented (using the last duplicate in each set of duplicates)