perClass Documentation
version 5.4 (7-Dec-2018)
NAME2IND  Convert category name to index

     IND=NAME2IND(LL,N)

 INPUT
    LL    SDLIST object
    N     String, character array or cell array with category names

 OUTPUT
    IND   Index of category in the list object

 DESCRIPTION
 NAME2IND converts category names to indices.  N may be a string,
 character array or cell array of strings.
 If any of the names in N does not exist in LL, empty IND is returned.
 Strings starting with '/' character are treated as regular
 expressions. If started with '~/', as a negation of a regular expression.
 Example:
   name2ind(LL,'~apple')  % returns all categories other than 'apple'
   name2ind(LL,'/Moment') % returns all categories starting with 'Moment'
   name2ind(LL,'~/apple|banana') % returns all categories NOT
                                   containing 'apple' or 'banana' substrings

 SEE ALSO
 IND2NAME, GETNAMES