GENLAB Generate labels for classes
LABELS = GENLAB(N,LABLIST)
DescriptionGenerate a set of labels as defined by the LABLIST. N is a number or a row/column vector of the values for each class. If N is a vector, then the first N(i) labels get the value LABLIST(i,:). N should have as many components as LABLIST. If N is a scalar, then N labels are generated for each class. LABLIST is a column vector or a string array. Labels can be used to construct a labeled dataset. Example(s)
Numeric labels, 1..10, 10 classes, 100 labels per class.
See alsodatasets, dataset,
|