Reset datastore to initial state
reset(ds)
example
reset(ds) resets the datastore specified by ds to the state where no data has been read from it. Resetting allows re-reading from the same datastore.
ds
collapse all
Create a datastore from the sample file, mapredout.mat, which is the output file of the mapreduce function.
mapredout.mat
mapreduce
ds = datastore('mapredout.mat');
Read the first key-value pair.
T = read(ds);
Reset the datastore to the state where no data has been read from it.
Input datastore. You can use these datastores as input to the reset method.
reset
MATLAB® datastores — Datastores created using MATLAB datastore functions. For example, create a datastore for a collection of images using ImageDatastore. For a complete list of datastores, see Select Datastore for File Format or Application.
datastore
ImageDatastore
Combined or transformed datastores — Datastores created using the combine and transform functions.
combine
transform
Custom datastores — Datastores created using the custom datastore framework. See Develop Custom Datastore.
You have a modified version of this example. Do you want to open this example with your edits?