f10 = 1 + v2 + x2 + x2v2 + x2v3 + x3v2 + x2w2 + x2w3 + x3w2
these are the expressions and I want to perform xor and AND operation on this for 2^8 combination in binary
And if this not correct method then how can I write this expression such that it gives 1bit output as either 0 or 1 for 2^8 combination
function a=Share1(u2,v2,w2,x2,u3,v3,w3,x3)
a=bitxor(1,v2,x2,bitxor(bitand(x2,v2),bitand(x2,v3),bitand(x3,v2),bitand(x2,w2),bitand(x2,w3),bitand(x3,w2)));
end
But it is not working.
Please someone suggest how can I write this qudratic equation using MATLAB or where I am wrong
2 Comments
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/655983-bit-wise-operation-of-and-and-xor-together#comment_1151443
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/655983-bit-wise-operation-of-and-and-xor-together#comment_1151443
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/655983-bit-wise-operation-of-and-and-xor-together#comment_1151968
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/655983-bit-wise-operation-of-and-and-xor-together#comment_1151968
Sign in to comment.