reset
Reset datastore to initial state
Syntax
Description
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.
T = read(ds);
Reset the datastore to the state where no data has been read from it.
reset(ds)
Input Arguments
Input datastore. You can use these datastores as input to the
reset method.
MATLAB® datastores — Datastores created using MATLAB
datastorefunctions. For example, create a datastore for a collection of images usingImageDatastore. For a complete list of datastores, see Select Datastore for File Format or Application.Combined or transformed datastores — Datastores created using the
combineandtransformfunctions.Custom datastores — Datastores created using the custom datastore framework. See Develop Custom Datastore.
Extended Capabilities
The reset function supports
thread-based environments with these usage notes and limitations:
In a thread-based environment, you can use
resetonly with the following datastores:ImageDatastoreobjectsCombinedDatastore,SequentialDatastore, orTransformedDatastoreobjects you create fromImageDatastoreobjects by usingcombineortransform
You can use
resetwith 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).
For more information, see Run MATLAB Functions in Thread-Based Environment.
Version History
Introduced in R2014b
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
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.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)