reset - Reset datastore to initial state - MATLAB (original) (raw)
Main Content
Reset datastore to initial state
Syntax
Description
reset([ds](#bududlx-1-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.
Examples
Create a datastore from the sample file, mapredout.mat
, which is the output file of the mapreduce
function.
ds = datastore('mapredout.mat');
Read the first key-value pair.
Reset the datastore to the state where no data has been read from it.
Input Arguments
Extended Capabilities
Usage notes and limitations:
- In a thread-based environment, you can use
reset
only with the following datastores:ImageDatastore
objectsCombinedDatastore
,SequentialDatastore
, orTransformedDatastore
objects you create fromImageDatastore
objects by usingcombine
ortransform
You can usereset
with other datastores if you have Parallel Computing Toolbox™. To do so, run the function using a process-backed parallel pool instead of usingbackgroundPool
orThreadPool
(use eitherProcessPool
orClusterPool
).
For more information, see Run MATLAB Functions in Thread-Based Environment.
Version History
Introduced in R2014b