Main Content

reset

Reset datastore to initial state

Syntax

Description

example

reset(ds)resets the datastore specified bydsto the state where no data has been read from it. Resetting allows re-reading from the same datastore.

Examples

collapse all

Create a datastore from the sample file,mapredout.mat, which is the output file of themapreducefunction.

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

collapse all

Input datastore. You can use these datastores as input to theresetmethod.

Extended Capabilities

Version History

Introduced in R2014b

See Also