Loren on the Art of MATLAB

Turn ideas into MATLAB

Results for: 2009

Unique Values Without Rearrangement 4

Posted by Loren Shure,

In MATLAB, the simplest form of the function unique returns the unique values contained in a numeric vector, with the results sorted. This is often acceptable, but sometimes a user prefers the results in the order originally found in the data. ... read more >>