Main Content

isShuffleable

R2026b

Determine whether datastore is shuffleable

Description

tf = isShuffleable(dst) returns logical 1 (true) if the datastore dst is shuffleable and logical 0 (false) otherwise.

You can use shuffle on shuffleable datastores to randomize the ordering of files while preserving the row associations of files in different datastores.

example

Examples

collapse all

Test whether the datastore myDS is shuffleable.

tf = isShuffleable(myDS)
tf =

  logical

   0

Input Arguments

collapse all

Input datastore, specified as one of these options:

  • MATLAB® datastores — Datastores created using MATLAB datastore functions. For a complete list of datastores, see Select Datastore for File Format or Application.

  • Combined and transformed datastores — Datastores created using the combine and transform functions.

  • Custom datastores — Datastores created using the custom datastore framework. Any datastore that subclasses from matlab.io.Datastore supports the isShuffleable function. See Develop Custom Datastore for more information.

Version History

Introduced in R2020a