How to read datastore from specified position?
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
In official documents,they have not introuduce how to read datastore from specified position?
For example,I build a audiodatastore with 400 sound files.When I read it,it only begins from the first or last time position.
I want to read from 20 to 40, I use follow code:
adsTest = audioDatastore(fullfile(dataFolder,'test'),'IncludeSubfolders',true);
[cleanAudio,adsTestInfo] = read(adsTest(20:40));
it does not work.It says "Array formation and parentheses-style indexing with objects of class 'audioDatastore' is not allowed. Use objects of class 'audioDatastore' only as scalars or use a cell array."
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!