This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

shuffle

Class: matlab.io.datastore.Shuffleable
Package: 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

Introduced in R2018a