The first input argument v is a row-vector, while the second input argument a is a scalar. The function moves every element of v that is equal to a to the end of the vector. If a is omitted, the function moves occurrences of zeros.
eleni-chr / move_me Goto Github PK
View Code? Open in Web Editor NEWThe function moves every element of an input vector, v, that is equal to an input scalar, a, to the end of the vector.
License: MIT License