Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

reset

Reset datastore to initial state

Syntax

reset(ds)

Description

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.

Examples

collapse all

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

collapse all

Input datastore. You can use the datastore function to create a datastore object from your data.

See Also

Introduced in R2014b

Was this topic helpful?