MATLAB 帮助中心
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.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处