REM

 

 Remainder after division.

  The remainder REM(x,y) is x - n.*y where n = fix(x./y)

  is the integer part of the elementwise quotient x./y .