This MATLAB function returns logical 1 (true) if A and B are the same size and their contents are of equal value; otherwise, ... Compare Two Numeric Matrices.
www.mathworks.com