MATLAB: XOR operation

xor operation

I=rand(1,N)>0.5 N=90 xor operation should done for each two bits . and out put should be corresponding two bit followed with result. pls help me

Best Answer

xor(I(1:2:end), I(2:2:end))
Related Question