Remove the first occurence of a value within a vector.
Calling Sequence
[V] = NL_F_RemoveFirstOcc(V,N)
Arguments
V :
Vector.
N :
Value.
Description
NL_F_RemoveFirstOcc removes the first occurence of the value N inside the vector V, if it is present a single time.
Examples
v=[1234567];//original vectorvl1=3;//value under considerationv1=NL_F_RemoveFirstOcc(v,vl1)//application of NL_F_RemoveFirstOccvl2=6;v2=NL_F_RemoveFirstOcc(v,vl2)