Rank: 108757 based on 0 downloads (last 30 days) and 0 file submitted
photo

dave matthews

E-mail
Company/University
ucsd

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by dave
Updated File Comments Rating
08 Apr 2009 Determine and count unique values of an array Very fast function to determine and count unique values of numeric, logical, char, cell arrays. Author: Anthony Kendall

it would be nice to extend this to the n-d case, or at least the 2-d case, i.e., find and list unique pairs?

x = [1 2; 1 3; 1 2];
then, uniques = [1 2], [1 3];
and, numuniques = [2 1];

thanks

Contact us