Main Content

reset

Reset MDF datastore to initial state

Description

example

reset(mdfds) resets the MDF datastore specified by mdfds to its initial read state, where no data has been read from it. Resetting allows you to reread from the same datastore.

Examples

collapse all

Reset an MDF datastore so that you can read from it again.

mdfds = mdfDatastore(fullfile(matlabroot,'examples','vnt','data','CANape.MF4'));
data = read(mdfds);
reset(mdfds);
data = read(mdfds); 

Input Arguments

collapse all

MDF datastore, specified as an MDF datastore object.

Example: mdfds = mdfDatastore('CANape.MF4')

Version History

Introduced in R2017b

See Also

Functions