MATLAB: XOR operation increasing the length of the bits by replacing it by xor resultMATLAB input=output [0 0]=[0 0 0] [0 1]=[0 1 1] [1 0]=[1 0 1] [1 1]=[1 1 0] how can i get this Best Answer a=[0 0] %example inputb=[a(1) a(2) xor(a(1),a(2))] %example output Related SolutionsMATLAB: Array of 1 and 0 to decimal B = bin2dec(char(A + '0'))B = 147 15 170 MATLAB: XOR operation xor(I(1:2:end), I(2:2:end)) Related QuestionChange binary string to decimalLogical operation on column of a matrixMatrix multiplication using XORProblem with XOR bitsXor operation using loop
Best Answer