MATLAB: Finding unique values of mixed data types.

mixed dataset

I have a mixed dataset file with strings, integers and real numbers. I load it in matlab into a cell where each cell is a word or a number and every column has only values of the same datatype. I want to now to find unique values of each column. This is possible for strings. For strings I can do UNIQUE(data(1:50,1)) which would give me unique strings for the first 50 rows of column 1. Is there a fast way for doing this for integers?
Thanks

Best Answer

c={'a',1;'b',2;'c',1}
unique(c(:,1))
unique(cell2mat(c(:,2)))
Related Question