Hello, this question might seem very naive. But what is the best way of doing a logical comparison of two matrices. Consider the following MWE:

```
function compare(N)
for n=1:N
X=rand([0,1],4,4)
Y=rand([0,1],4,4)
if X != Y
println("These matrices are different")
end
end
end
```