I'm new to MATLAB and my mother language is C++. Now i'm trying to implement algorithm in MATLAB which uses balanced tree. As i know it can be done with using java.util.TreeSet. But i don't know how to provide my own comparator this tree. With next code i get parse error
classdef SitesComparator < java.util.Comparator<Site>
Also, in C++ i can just implement bool operator<(const Type& other)
. Can i do this in MATLAB, e.g. just implement lt(a, b)
or something like this?