Function for histogram of distances based on GPS coordinate data?

3 ビュー (過去 30 日間)
Erik J
Erik J 2020 年 2 月 24 日
コメント済み: Erik J 2020 年 2 月 25 日
I have a matrix of GPS coordinates. I would like to create a histogram with bins showing how many corrdinates are 1 meter apart, 2 meters apart, etc. Is there an available function to do this? Alternatively, does anyone have an approach to doing this?
Thank you much.

採用された回答

Keith Ma
Keith Ma 2020 年 2 月 25 日
I think you just need to compute all of the pairwise-distances, and then you can create a histogram of the resulting matrix. The relevant functions are:
Beware that the pairwise distance output will have m(m-1)/2 elements, which may be terrifyingly large depending on your dataset.

その他の回答 (0 件)

カテゴリ

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

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by