The remainder function. |
||
Syntax |
R = Rem(X,Y) |
|
Argument |
Name |
Description |
X |
A real scalar, vector, or matrix of dividend values. |
|
Y |
The divisor values. A real scalar, vector, or matrix that has the same dimensions as X. |
|
Output |
Name |
Description |
R |
When X is a matrix, the result is X–Y.*Fix(X./Y). |
|
Example |
Find the remainder of 4.3 / 2. |
|
Syntax |
||
R = Rem(5.3, 2) |
||
Result |
||
R = 1.3 |
||
See Also: |