tf = isShuffleable(ds) returns logical
1 (true) if the datastore ds is
shuffleable. Otherwise, the result is logical 0
(false).
You can use the shuffle function on shuffleable datastores to
randomize the ordering of files, while preserving the row associations of files in different
datastores.
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.
Use curly braces ({ and }) to extract the signal element fuel, which is the tenth element in DSRef, as a Simulink.SimulationData.Signal object that contains a SimulationDatastore object.
SimDataSig = DSRef{10};
To more easily interact with the SimulationDatastore object that resides in the Values property of the Signal object, store a handle in a variable named DStore.
DStore = SimDataSig.Values;
Determine if the datastore is shuffleable.
if isShuffleable(DStore)
disp('Datastore is shuffleable.')
else
disp('Datatstore is not shuffleable.')
end