Create subset of datastore or file-set
subds = subset(
returns a subset containing files corresponding to ds
,indices
)indices
. The subset
subds
is of the same type as the input.
if the input ds
is a datastore, then the output
outds
is a datastore of the same type.
if the input ds
is a DsFileSet
,
FileSet
, or BlockedFileSet
object, then the
output subds
is also, respectively, a DsFileSet
,
FileSet
, or BlockedFileSet
object.
DsFileSet
| ImageDatastore
| matlab.io.datastore.BlockedFileSet
| matlab.io.datastore.FileSet
| splitEachLabel