folders2labels
Syntax
Description
Use this function when you are working on a machine or deep learning classification problem and your labeled data is stored in folders that have the corresponding label names.
specifies additional input arguments using name-value pairs. For example,
lbls
= folders2labels(loc
,Name,Value
)'FileExtensions','.mat'
includes only .mat files in the scan for
labels.
creates a list of labels based on the files contained in lbls
= folders2labels(ds
)ds
.
ds
can be a datastore, a matlab.io.datastore.FileSet
object, or a matlab.io.datastore.BlockedFileSet
object.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2021a
See Also
labeledSignalSet
(Signal Processing Toolbox) | signalLabelDefinition
(Signal Processing Toolbox) | countlabels
(Signal Processing Toolbox) | filenames2labels
(Signal Processing Toolbox) | splitlabels
(Signal Processing Toolbox)