distances between coordinates

조회 수: 7 (최근 30일)
MOHD KHAIRUL BAZLI
MOHD KHAIRUL BAZLI 2012년 6월 11일
답변: Chad Greene 2014년 11월 19일
hi guys,
I have a problem. I have a set of coordinates in latitude and longitude system, like about 95 coordinates and i arranges it in matrix 95x2. so i would like to find the distances between each coordinates and makes the distances in matrix 95x95. can anybody help me?
  댓글 수: 1
Walter Roberson
Walter Roberson 2012년 6월 11일
Which distance measure?
For example do you want to simplify as if it was a sphere and you want to find the great circle distances? Or do you want the WGS-84 model? Do you want to include altitude in your calculations?

댓글을 달려면 로그인하십시오.

답변 (1개)

Chad Greene
Chad Greene 2014년 11월 19일
First, convert lat/lons into some projected x/y using an appropriate projection. After projecting lat/lon to x/y, coordinates will be in units of meters or feet and you can use John D'Errico's ipdm function to get the inter-point distance matrix.

Community Treasure Hunt

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

Start Hunting!

Translated by