Returns the remainder of the division of x by y, which is defined by x-(y * floor(x/y)). The second argument must either be scalar or the same type of first argument and in case both arguments are vector, matrix or signal this function is performed element-wise.
Syntax
mod(x,y)
Types
| Variable Name | Value Type | Variable Type | ||
|---|---|---|---|---|
| Arguments: | x | real, complex | scalar, vector, matrix, signal, xy-data | |
| y | real, complex | scalar, vector, matrix, signal, xy-data | ||
| Result: | v | real, complex | scalar, vector, matrix, signal, xy-data | |
Calculator Input
Use the button to complete the operation.
Example
| ID | Description | Type | Value | Expression | |
|---|---|---|---|---|---|
| x | Argument | REAL VECTOR |   | [24,30] | |
| y | Argument | REAL VECTOR |   | [4,4] | |
| v | Result | REAL VECTOR |   | mod(x,y) | |