In 2013b MATLAB introduced categorical variables, which fits perfect the classification need. So instead of keeping separately class numbers and corresponding labels, one can combine them together in a categorical variable. Perhaps can be a good idea to consider using categorical variable to keep class belongings inside the toolbox. For user input it can look as follows:
Check if user already provided categorical variable for classes. If yes - use it as is
If provided class variable is numeric - convert it to categorical (if labels provided - use them as well)
If provided class variable is cell array with class names - convert it to categorical variable
It is not an urgent issue, can be implemented in one of later releases if you agree. The only cons I see here is that older MATLAB versions (< 2013) do not support it.
In 2013b MATLAB introduced categorical variables, which fits perfect the classification need. So instead of keeping separately class numbers and corresponding labels, one can combine them together in a categorical variable. Perhaps can be a good idea to consider using categorical variable to keep class belongings inside the toolbox. For user input it can look as follows:
It is not an urgent issue, can be implemented in one of later releases if you agree. The only cons I see here is that older MATLAB versions (< 2013) do not support it.