Member of the basic class.
c = mod(a, b)
Computes the modulo of the input elements.
| Name | Description |
| a | Specifies the dividend. a is a matrix. |
| b | Specifies the divisor. b is a matrix. |
| Name | Description |
| c | Returns the modulo of a and b. c has the same sign as b. c is a matrix of the same size as the larger of a and b. |
LabVIEW computes the modulo using the following equation: mod(a, b) = a-b.*floor(a./b). If b is 1 and a is positive, mod(a, 1) is the fractional part of a. If the input elements have the same sign, mod(a, b) is equivalent to rem(a, b).
A = [1:1:5]
B = 3
C = mod(A, B)