Hello everybody, please help with problem
Mostrar comentarios más antiguos
how to find Euclidean distance
Respuesta aceptada
Más respuestas (1)
Geoff Hayes
el 6 de Nov. de 2016
Denys - this is clearly a homework assignment so we can only give out hints...especially when you don't even try to post anything except the question. From the first two examples, it is easy to see that the Euclidean distance is the metric that you are supposed to use to determine the difference between two points. Please look at the algorithm (use the link) and try to code up your function. Start with the signature which would be
function [eDist] = dist(x1,x2)
where x1 and x2 are your input arrays and eDist is the calculated Euclidean distance.
Categorías
Más información sobre Programming 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!