How to find the distance between pionts?

  • Thread starter Thread starter hgphtgi
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
hgphtgi
Messages
12
Reaction score
0
Hello My Friends

I am trying to find the distance from 1,1 to all other points then from 2,1 to all other points then from 3,1 to all other points ...etc, until from 3,3 to all other points .
I used this function in Matlab and i got the answer

arclen = distance('gc',[37,-76],[37,-9]);arclen1 = distance('gc',[37,-76],[37,-9]) and i got the answer,

However i need some help to write the full program for these 9 points, could you please try to help?Note: all the points are real on the map an has ( longitude) and ( latitude ).

regards
 

Attachments

  • new.JPG
    new.JPG
    8.3 KB · Views: 697
Last edited:
Physics news on Phys.org