how to do bitxor operation of two 1*255 matrix
4 views (last 30 days)
James Tursa on 30 Nov 2018
Edited: James Tursa on 30 Nov 2018
It's not entirely clear to me what operation you really want, but if the elements of h1 and h2 represent "bits", then you could just do this:
result = (h1 ~= h2); % equivalent of xor between the elements of h1 and h2
If h1 and h2 don't have the same number of elements, then that is a different problem that you will need to fix before doing the xor operation.