function coefficient = bhattachar(dist1,dist2) dist1 = dist1(:); dist2 = dist2(:); coefficient = sum(sqrt(dist1.*dist2));