perClass Documentation
version 5.4 (7-Dec-2018)
 SDLIST  Constructor for indexed list

     L=SDLIST('name1','name2',...)
     L=SDLIST(NAMES)
     [L,C]=SDLIST(LAB)

 INPUT
   NAMES  cell array or char array with string names
   LAB    string or numerical labels

 OUTPUT
   L      SDLIST object
   C      vector of codes corresponding to labels LAB

 DESCRIPTION
 SDLIST implements indexed list of string names. Names are internally
 represented by numerical codes. Codes are negative integers to
 distinguish them from relative Matlab indices. If only string names are
 supplied, codes are generated. Code may be also specified manually in the
 name string (format: 'CODE:NAME'). Manually-assigned codes are always
 preserved.  Error is raised in case of conflict which must be solved
 manually (by specifying different code or name).

 EXAMPLES:
  L=sdlist('apple','banana') % codes auto-generated
  L=sdlist('-5:apple','-3:banana') % specify code manually

 SEE ALSO
 NAMES, CODES, NAME2CODE, CODE2NAME