To test al model, with real data it can be useful to pick a smaller sample out of a bigger dataset.
An other application could be to decide how small a random sample should be to see if the process is working property.
Mauro (2020). samplepick (https://www.mathworks.com/matlabcentral/fileexchange/26889-samplepick), MATLAB Central File Exchange. Retrieved .
works now with randperm