How can I calculate percentage of Euclidean distance?
Show older comments
Hello
I use this code to find the similarities between features by the Euclidean distance.
function D= E_distance(n1, n2)
D = sqrt(sum((n1 - n2) .^ 2));
end
It will give me the distance between features, but I want to get the percentage where I can compare it to the threshold, how can I get it?
Accepted Answer
More Answers (0)
Categories
Find more on Medical Physics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!