Assign Sign

Syntax


y = sign(x1, x2)

Description


Returns the sign of x2 multiplied by the absolute value of x1, where the input arguments may be constants, variables, or expressions.

Example


y = sign(t, sin(t))