<< NARVAL_F_AleaNombre NARVAL NARVAL_F_ColumnExtract >>

NARVAL >> NARVAL > NARVAL_F_AleaVec

NARVAL_F_AleaVec

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

Calling Sequence

[n,v]=NARVAL_F_AleaVec(v)

Parameters

v :

vector of values.

n :

random component extracted from v.

Description

NARVAL_F_AleaVec randomly extracts a component n of the vector v without replacement. After its application, n is removed from v.

Examples

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

Dependency

NARVAL_F_AleaNombre

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_F_AleaNombre NARVAL NARVAL_F_ColumnExtract >>