Hi Michelle,
The cvpartition(group,'KFold',k) function with k=n creates a random partition for leave-one-out cross-validation on n observations.
Hope this helps.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!