Question: how to calculate the distance of a matrix?
Answer: The proximity between object can be measured as distance matrix. ...  For example, distance between object A = (1, 1) and B = (1.5, 1.5) is computed as. Another example of distance between object D = (3, 4) and F = (3, 3.5) is calculated as.