how to find euclidean distance

i have a cell that contain 50 extraction value of image like in image that i attach
and i want to get the euclidean distance for all this value. How to make it ?

 Accepted Answer

Walter Roberson
Walter Roberson on 9 Jun 2016
In order to get a Euclidean distance, you need to have two (possibly high-dimensional) points to take the distance between .
Perhaps you would like to use norm() on the vector of numeric values.

5 Comments

hi Walter, thank you so much for answare my question. norm() ?? what is norm() ? how it work and how to use it ?
Eliz you have to read about norm..it is a basic thing for what you want to calculate. https://en.wikipedia.org/wiki/Norm_(mathematics)
norm() for your purpose would be sqrt(sum(YourData.^2)) which would be the same thing (mathematically) as the Euclidean distance between your data and the Origin (point whose coordinates are all zero)
@Dr.Siva thanks for answare.. oke thanks .. i have read it
Hi Walter, thank you :)

Sign in to comment.

More Answers (0)

Categories

Find more on Convert Image Type 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!