I understand that “bitxor" method expects an integer as an argument but “EIRc(m,n)” returns a double value.
To resolve this, you can convert the double value to uint8 using the uint8 function, which is appropriate if you're working with 8-bit data.
Here’s the updated line of code with the necessary type conversion:
EIR(m, n) = bitxor(uint8(mod(floor(abs(y)*1e15), 256)), uint8(EIRc(m,n)));
You can refer to the documentation for more details on the uint8 function: