how i find the euclidean distance between two data points x and y....?

3 views (last 30 days)
hi, I need to find the euclidean distance between two data points x and y from the Rn space is calculated as follows :
in matlab how i do programming code....???Looking for your reply.

Answers (1)

Image Analyst
Image Analyst on 24 Nov 2016
Edited: Image Analyst on 25 Nov 2016
Try norm() or hypot(), or simply sqrt().
But you don't have to do it manually you know. There are functions like kmeans() and knnsearch() in the Statistics and Machine Learning Toolbox.
  2 Comments
moath alnajjar
moath alnajjar on 25 Nov 2016
Thank you for your answer . Thats right the function it is the same Kmeans() but i do not know much for matlab codeing

Sign in to comment.

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!