The modulus function. |
||
Syntax |
Y = Mod(X,M) |
|
Argument |
Name |
Description |
X |
A real scalar, vector or matrix. |
|
M |
The modulus values. A real scalar, vector or matrix that has the same dimensions as X. |
|
Output |
Name |
Description |
Y |
When X is a matrix the result is X–M.*Floor(X./M). |
|
Example |
Find the value of 5.3, modulus 2. |
|
Syntax |
||
Y = Mod(5.3, 2) |
||
Result |
||
Y = 1.3 |
||
See Also: |