What is the MATLAB Java HashSet equivalent?
Java has a HashSet class that I can use to create sets and add an element at constant time, which allows me to efficiently compute unique values ββto the list.
How can I do the same in MATLAB? Is there an equivalent native class? This question suggests using Java HashSet, but does not provide a native class.
+3
Bob
source
to share
1 answer
Use struct in Matlab. See http://www.mathworks.com/help/matlab/ref/struct.html
-4
Robin D.
source
to share