### Possible Answer

Hi, you can use the mod command for that. Assume you like to add a and b and than do the modulo 2: mod(a+b,2) - read more

This MATLAB function returns the remainder after division of a by m, where a is the dividend and m is the divisor. - read more

Please vote if the answer you were given helped you or not, thats the best way to improve our algorithm. You can also submit an answer or search documents about mod 2 addition matlab.