Main Content

shuffle

Class: matlab.io.datastore.Shuffleable
Namespace: matlab.io.datastore

Return a shuffled version of a datastore

Syntax

ds2 = shuffle(ds)

Description

ds2 = shuffle(ds) shuffles samples of the datastore ds in random order, and returns the shuffled datastore, ds2.

Input Arguments

expand all

Input datastore, specified as a matlab.io.Datastore object.

Output Arguments

expand all

Shuffled datastore, returned as a matlab.io.Datastore object.

Attributes

Abstracttrue

To learn about attributes of methods, see Method Attributes.

Tips

Version History

Introduced in R2018a