I want to calculate the Euclidean Distance (E.D.) between two matrices (X and Z) of different sizes. The E.D. equation is D(X,Z) = sqrt((X-Z)(X-Z).T). Breaking this out in