How can I calculate percentage of Euclidean distance?
古いコメントを表示
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?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Medical Physics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!