mod matlab code example Example: matlab modulo % Mod 2 would be: y = 27 y = mod(y, 2) % mod(<Value>, <divisor>)