MATLAB: Can anyone help me to solve this problem?i want xor operation of 2 character arrays how to do xor operation of 2 character arrays

MATLABxor operation of 2 char arrays

xor operation of 2 character arrays

Best Answer

a=['a' 'b' 'c']
b=['d' 'e' 'f']
c=bitxor(int32(a),int32(b))
If you expressly want the result as a char array you'd have to cast it back, but there's a good chance it would be unprintable