I hope someone can help me with this particular problem:
I need to calculate 'bitxor' for more than two inputs. I have a vector of intputs/elements where the number of inputs/elements varies. For instance, in case of a four elements Vector, the solution is as follows:
Vector: Y = [1 3 5 7];
Solution: bitxor(bitxor(Y(1),Y(2)),bitxor(Y(3),Y(4)));
Is there any way where I can write this in a more general way, such that I get one value/elemet no matter how many inputs elements there is in vector Y?