find distance between 2 points

5 visualizaciones (últimos 30 días)
RITTIK KUMAR GHOSH
RITTIK KUMAR GHOSH el 15 de Nov. de 2014
Comentada: Star Strider el 29 de Dic. de 2014
I need to find the distance between 2 points. what is wrong with the script?
function d = finddist(A,B)
s = B-A
d = findmod(s)
this is what is coming when i am running it. Error using finddistance (line 2) Not enough input arguments. please help me out with the corrections to be done.
  2 comentarios
Jan
Jan el 16 de Nov. de 2014
The error message contains "finddistance", but you post the code of "finddist". Which is "line 2"?
RITTIK KUMAR GHOSH
RITTIK KUMAR GHOSH el 29 de Dic. de 2014
thankyou for the help, appreciated it.

Iniciar sesión para comentar.

Respuesta aceptada

Star Strider
Star Strider el 15 de Nov. de 2014
Not to rain on your parade, but I would just use the hypot function.
  7 comentarios
RITTIK KUMAR GHOSH
RITTIK KUMAR GHOSH el 29 de Dic. de 2014
thank you for all the help
Star Strider
Star Strider el 29 de Dic. de 2014
My pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by