posdist

Calculates distance between two geographical positions in lat/long format

現在この提出コンテンツをフォロー中です。

Calculates distance in km between two points given in decimal degrees latitude and longitude. Calculation can be great circle distance (smallest distance along the surface of a sphere) or Cartesian distance (planar approximation for smaller distances).
Input can be as scalars or arrays, as long as dimensions are identical for all four coordinates.

The function is based on the pos2dist function submitted by Langqui Sun, modified to allow arrays as input.

引用

Jakob Tougaard (2026). posdist (https://jp.mathworks.com/matlabcentral/fileexchange/35562-posdist), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを得たファイル: pos2dist

ヒントを与えたファイル: pathdist

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.0.0.0