d(A,B) = . First, you take the difference of the matrices. Then you take the sum of squares of all the elements of the difference matrix. Then you take the square root of it. Then you use your calculator.