MATLAB: Calculer de distance et line entre les noeud

distancelinemin

brini – please format your code so that it is readable. Else, attach the m file with this code to your question. You mention that you want to calculate the distance between each yellow dot and each (?) red dot. What is happening instead? What errors are you observing?

Best Answer

First, read this link and fix your post. Then I'm not sure what you're asking. Is it how to use hypot() or sqrt() to compute the Pythagorean formula for Euclidean distance??? But that seems so elementary. So trivial that that can't be it, so what are you asking?