rem
The remainder function.
y=rem(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 remainder resulting from the division of the correspoding elements of the inputs. When an element den[i] is zero, the corresponding element of y is set to NaN .