Read first file from datastore for preview
Specify the file path to the audio samples included with Audio Toolbox™. Create an audio datastore that points to the specified folder.
folder = fullfile(matlabroot,'toolbox','audio','samples'); ADS = audioDatastore(folder);
Preview the data in the audio datastore.
data = preview(ADS); plot(data)
data— Subset of data
Subset of data, returned as an array of audio samples.