I have two big arrays with about 1000 rows and 1000 columns. I need to compare each element of these arrays and store 1 in another array if the corresponding elements are eq
Just use the normal == operator:
==
>> [1 2; 3 4] == [1 5; 6 4] ans = 1 0 0 1