Java has HashSet class which I can use to create sets and add element in constant time making it efficient to compute unique values in a list.
How can I do the same in MATLAB? Is there an equivalent native class? This question proposes using Java's HashSet but does not provide native class.