フィルターのクリア

How to produce distances from UTM

30 ビュー (過去 30 日間)
Matthew
Matthew 2014 年 2 月 11 日
回答済み: Jakob Tougaard 2017 年 10 月 2 日
I've determined using Pythagoras I can produce distances between two UTM points into metres, to do this I need to take one easting away from the one above, so In the file I have a column of eastings and northings, I need to deduct the easting in the 2nd position from the first position for both eastings and northings and then square each of the answers, add them together and then square root the sum, how is this possible?

回答 (1 件)

Jakob Tougaard
Jakob Tougaard 2017 年 10 月 2 日
easting=[5000;5400;6300;6200];
northing=[65000;65500;65800;66500];
distance=sqrt(diff(easting).^2+diff(northing).^2);
Note that this is the euclidian distance, i.e. the curvature of the earth is ignored.

カテゴリ

Help Center および File ExchangeCoordinate Transformations についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by