Euclidean distance between two points.
Mostrar comentarios más antiguos
I need to create a function that calculates the euclidean distance between two points A(x1,y1) and B(x2,y2) as d = sqrt((x2-x1)^2+(y2-y1)^2)).
Am lost please help.
3 comentarios
Oleg Komarov
el 5 de Mayo de 2012
What have you done so far?
http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
suma g
el 8 de Feb. de 2018
Sir im a researcher.Im working on emotion recognition classification through eyes and eyebrows.I have detected/cropped the feature ,now i need to calculate the distance between the nodal points in eye through matlab.I will calculate the distance of eyes for different expressions.Based om that i will determine the expression.Can u help me out.??? My email id sumaavani2@gmail.com
Muhammad Uzair
el 9 de Jun. de 2021
You can use D = pdist(X) to calculate pairwise isdtance in MATLAB, default distance is Euclidean. If you want to compare with other distance metrices like cityblock etc. then use D = pdist(X,distance)
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Template Matching en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!