<< NARVAL_F_Random_i_j NARVAL NARVAL_F_RemovIndex >>

NARVAL >> NARVAL > NARVAL_F_Remov

NARVAL_F_Remov

Remove a value from a vector if it is only present a single time.

Calling Sequence

[v]=NARVAL_F_Remov(v,vl)

Parameters

v :

vector of values.

vl :

value.

Description

NARVAL_F_Remov removes a value vl from a vector v if it is only present a single time.

Examples

v=[1 2 3 4 5];//vector
vl=3;//value
[v]=NARVAL_F_Remov(v,vl);//application of NARVAL_F_Remov
vl
v
v=[1 2 3 4 3 5];//vector
vl=3;
[v]=NARVAL_F_Remov(v,vl);//application of NARVAL_F_Remov
vl
v

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_F_Random_i_j NARVAL NARVAL_F_RemovIndex >>