MATLAB: Equality of an array

array equalityisequal

I have two arrays. A is 46×46; B is 45×45.
I want to check if the first 45 rows and 45 columns in A are equal to the 45×45 B array.
I know to use
tf = is equal(A,B)
but don't know how to incorporate the above parameters into the isequal command.

Best Answer

Did you try
isequal(A(1:45,1:45),B)
Related Question