<< 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 selection, 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

Authors

Foued Melakessou

Contact

Dr. Foued Melakessou

Research Associate

Interdisciplinary Centre for Security, Reliability and Trust

Room F106

University of Luxembourg

6, rue Coudenhove Kalergi

L-1359 Luxembourg-Kirchberg

E-mail: foued.melakessou@uni.lu

Tel: (+352) 46 66 44 5346

Home Page


<< NARVAL_F_AleaNombre NARVAL NARVAL_F_ColumnExtract >>