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 SolutionsMATLAB: Problem with XOR bits N=8;r=3A=zeros(N,r)out=zeros(N,1)for k=0:1:N-1 A(k+1,:)=dec2bin(k,r)-'0' out(k+1,1)=xor(xor(A(k+1,1),A(k+1,2)),A(k+1,3))end [A out] MATLAB: How to perform xor operation on an three input binary bits. a = xor(1,1); %1 xor 1 = 1b = xor(a,0) %1 xor 0 = 0%orc = xor(xor(1,1),0) Related QuestionSimple 16bit signal arithmetic problemXOR operationIf elseXor operation using loop
Best Answer