% recordingList is an array that contains all of your recordings.
randIdx = randsample(numel(recordingList), round(numel(recordingList)*.2));
sample = recordingList(randIdx);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!