FUNCTION REFERENCE

test

Return test observation indices.

Return test observation indices.

Syntax

r = test(c); r = test(c,i)

Returns a logical column mask. A fold index is required when NumTestSets exceeds one.

Example

c=cvpartition(4,'KFold',2); r=test(c,1)

Differences from MATLAB: Only cvpartition objects are supported.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.