Modulus

Syntax


y = mod(x1, x2)

Description


Returns the remainder of x1 divided by x2  (input arguments may be an expressions evaluating to a doubleprecision values).

Example


m = mod(1000*cos(t), 1000*sin(t))