MATLAB Help Center
Reset datastore read pointer to start of data
reset(sds)
reset(sds) resets the datastore read pointer to the start of the data. Resetting allows re-reading from the same datastore.
sds
example
collapse all
Specify the path to the sample signals included with Signal Processing Toolbox™.
folder = fullfile(matlabroot,'toolbox','matlab','audiovideo');
Create a signal datastore that points to the specified folder.
sds = signalDatastore(folder);
While the datastore has unread files, call read in a loop to read files sequentially.
read
while hasdata(sds) data = read(sds); end
Reset the datastore to the state where no data has been read from it. Read the first file from the datastore.
reset(sds) data = read(sds);
signalDatastore
Specify sds as an signalDatastore object.
Introduced in R2020a
signalDatastore | read | readall
readall
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
Europe
Asia Pacific
Contact your local office