MATLAB: Cross Validation

bioinformatic toolboxstatistics

Hello,
Can anyone please explain the difference between usage of crossval and crossvalind function? I understand that both are used for cross validation. But I'm confused which one to use. Will both produce same result?
Thanks, Rohit

Best Answer

crossvalind generates the indices that you can use for a general K-fold cross validation and enables you to select the training and test data
crossval actually preforms a 10-fold cross validation where you input a function handle
Related Question