MATLAB: Signum fuction with multiple input variables

mathematicsMATLABmatlab function

how to define a signum fuction with multiples input vectors.
like, y = sign(v1, v2, v3……)
where v1, v2, v3….. are vectors

Best Answer

If the set of v are the same size, then
y = sign([v1,v2,v3]);