Skip to main content

RESAMPLE matrix function

RESAMPLE(A) returns a matrix with the same dimension of A, containing a random selection of rows of A (resampling with replacement). Some rows of A may be duplicated in the result matrix, others may be missing.

If A is a row vector, then the result matrix will be a row vector with a random selection of elements of A.

Calculator

RESAMPLE {4,4,3,1}

See also