Main Content Class


Add shuffling support to datastore

Description is an abstract mixin class that adds support for shuffling samples in a datastore in random order.

To use this mixin class, you must inherit from the class, in addition to inheriting from the base class. Type the following syntax as the first line of your class definition file:

classdef MyDatastore < & ...

To add support for shuffling to your custom datastore, you must:

  • Inherit from the additional class

  • Define this additional method: shuffle.

For more details and steps to create your custom datastore, see Develop Custom Datastore.


shuffleReturn a shuffled version of a datastore



For information on class attributes, see Class Attributes.

Copy Semantics

Handle. To learn how handle classes affect copy operations, see Copying Objects.

Version History

Introduced in R2018a