### 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

In addition, we have 0 ≤ r < |m| for modp. See Example 2. ... delete x, m: x mod m, x mod 2, 2 mod m. When called with non-numeric arguments, ... Try MATLAB, Simulink, and Other Products Get trial now. Join the conversation. Preventing Piracy; - 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.