|
Contents | Previous | Next | Subchapters |
| Syntax |
z = rem(x, y) |
| See Also | mod , floor , roundoff , int |
|z| < |y|,
and x - z is divisible by y.
The matrices x and y are
integer, real, or double-precision matrix.
x = [1., 1.5, 2., 2.75]
y = 2.5
rem(-x, y)
returns
[-1. , -1.5 , -2 , -0.25]