I want to XOR 2 big array but hit matlab memory limitation. The only way come to my mind is to map [0 1] to [1 -1] and then perform a direct multiplication? What is the most efficient way to do it? I am trying to avoid the for loop to do an element by element operation.
MATLAB: What is the most efficient way to map big array of [0 1] to [1 -1]
[0 1] to [1 -1] mapping
Related Question
- Apply operation to each element of an array
- Input of array into equation won’t return array
- How to convert a 64 bit, two’s complement value(binary vector)[ 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1] into a signed integer
Best Answer