hey there, I want to randomly select 80% from my data to create a training dataset and use the residual 20% for the evaluation of my model obtained from the training dataset. How I can I best perform this split in matlab? (Actually I want to perform this split multiple times within a loop in order to be able to deliver a more robust result)
Another possibility if you have the Statistics Toolbox is to use cvpartition. There are various ways to use it, from the simplest kind of "hold out" scheme that you describe, to more complicated k-fold cross-validation.