DocumentationHelp Center
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.
Existe una versión modificada de este ejemplo en su sistema. ¿Prefiere abrir esta versión?
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.
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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office