mod
The modulo operator.
y=mod(num,den)
Inputs
num Any real array.
den A real array of the same size as the input.
Outputs
y An array of the same size as the inputs. Each element of the output is the result of applying the mod operator to the corresponding elements of the inputs. However, when an element den[i] is zero, the corresponding element of y is set to the element num[i] .