MATLAB Answers

how to find euclidean distance

2 views (last 30 days)
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 ?

  0 Comments

Sign in to comment.

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

Show 2 older comments
Walter Roberson
Walter Roberson on 9 Jun 2016
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)
ElizabethR
ElizabethR on 10 Jun 2016
@Dr.Siva thanks for answare.. oke thanks .. i have read it
ElizabethR
ElizabethR on 10 Jun 2016
Hi Walter, thank you :)

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!