Main Content
dividerand
Divide targets into three sets using random indices
Description
[
takes the number of targets to divide up, the ratio of vectors for training, the ratio of
vectors for validation, and the ratio of vectors for testing, and returns the training
indices, the validation indices, and the test indices.trainInd
,valInd
,testInd
] = dividerand(Q
,trainRatio
,valRatio
,testRatio
)
Examples
Input Arguments
Output Arguments
More About
Version History
Introduced in R2008a