%% Partition Datastore into Specific Number of Parts
% 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)

%
% Partition the datastore into three parts.

subADS1 = partition(ADS,3,1)
subADS2 = partition(ADS,3,2)
subADS3 = partition(ADS,3,3)

%
% Copyright 2018 The MathWorks, Inc.