|
Contents | Previous | Next | Subchapters |
| Syntax |
z = mod(x, y) |
| See Also | rem , colunmod , 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
mod(x, y)
returns
[1. , 1.5 , 2 , 0.25]