test
Test indices for cross-validation
Description
idx = test(c)idx for a cvpartition object c of type 'holdout'
        or 'resubstitution'.
- If - c.Typeis- 'holdout', then- idxspecifies the observations in the test set.
- If - c.Typeis- 'resubstitution', then- idxspecifies all observations.
idx = test(c,i)i of a
          cvpartition object c of type 'kfold' or
          'leaveout'.
- If - c.Typeis- 'kfold', then- idx(:,j)specifies the observations in test set- i(j).
- If - c.Typeis- 'leaveout', then- idx(:,j)specifies the observation reserved for testing at repetition- i(j).
idx = test(c,"all")cvpartition object c. Column j in
          idx indicates the observations in test set j for
        an object of type 'kfold' or 'leaveout'. (since R2023b)

