MATLAB File Help: prtDataSetClass/classNamesToClassInd
prtDataSetClass/classNamesToClassInd
  classInds = classNamesToClassInd(dataSet,classNames)
    Return the class indices corresponding to the classes
    specified in the character array or cell of strings,
    classNames.
 
    Note that the classInd is not necessarily the same as the
    target value.
 
   ds = prtDataGenIris;
   ds.classNamesToClassInd('Iris-setosa'); %Setosa is the first

Help for prtDataSetClass/classNamesToClassInd is inherited from superclass prtDataInterfaceCategoricalTargets
Method Details
Defining Class prtDataInterfaceCategoricalTargets
Access public
Sealed false
Static false