<< NL_F_RandVectorJifI NL_F: Function NL_F_RandVectorPermut >>

NARVAL >> NL_F: Function > NL_F_RandVectorNoRepl

NL_F_RandVectorNoRepl

Extract a random component of a vector (without replacement).

Calling Sequence

[N,V] = NL_F_RandVectorNoRepl(V)

Arguments

V :

Vector.

N :

Random component of V.

Description

NL_F_RandVectorNoRepl extracts the random component N of the vector V without replacement. N is removed from V after the calculation.

Examples

v=1:10;//original vector [1 2 3 4 5 6 7 8 9 10]
[n,v]=NL_F_RandVectorNoRepl(v)//application of NL_F_RandVectorNoRepl

Dependency

NL_F_RandInt1n

Report an issue
<< NL_F_RandVectorJifI NL_F: Function NL_F_RandVectorPermut >>