Input datastore, specified as a datastore object. The input datastore can be any datastore for whichisShuffleablereturnstrue(such asimageDatastore). The input datastore also can be aCombinedDatastoreorTransformedDatastorefor which all underlying datastores are shuffleable.
Output datastore, returned as a datastore object containing randomly ordered data fromds.
Extended Capabilities
Thread-Based Environment Run code in the background using MATLAB®backgroundPoolor accelerate code with Parallel Computing Toolbox™ThreadPool.
Usage notes and limitations:
In a thread-based environment, you can useshuffleonly with the following datastores:
ImageDatastoreobjects
CombinedDatastoreorTransformedDatastoreobjects you create fromImageDatastoreobjects by usingcombineortransform
You can useshufflewith other datastores if you have Parallel Computing Toolbox™. To do so, run the function using a process-backed parallel pool instead of usingbackgroundPoolorThreadPool(use eitherProcessPoolorClusterPool).
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.