rem

Purpose

Remainder after division.

Synopsis

r = rem(x,y)

Description

rem(x,y) is x-n.*y, where n = fix(x./y) is the integer part of the quotient, x./y. For matrices, this function operates element-by-element.

See Also

ceil, exp, fix, floor, log, round, sign

(c) Copyright 1994 by The MathWorks, Inc.