I am using MATLAB. I have a question about how i can verify that the values of a matrix are being repeating, like this:
A=[ 2 3 2 3 2 3 2 3]
If
Here is another simple way to do it:
AUX = all(A(1) == A(1:2:end)) && all(A(2) == A(2:2:end))
Basically this checks whether all odd elements are equal to the first element, and all even elements are equal to the second element.