Upon some research I found two functions in MATLAB to do the task:
cvpartition
function in the Statistics Toolboxcrossvalind
function in the Bioinformatics Toolbox
Now I've used the cvpartition
to create n-fold cross validation subsets before, along with the Dataset
/Nominal
classes from the Statistics toolbox. So I'm just wondering what are the differences between the two and the pros/cons of each?