Best match location data
古いコメントを表示
Hi
I have location data (longitude and latitude) for certain sites and I want to compare these two with a national databse to know the local authority of these sites + their postcodes.
I have two tables:
Sitename Latitude Longitude
14182-Pembroke Refinery 51.686081 -5.0271217
8059-New Rugby 52.376283 -1.2860374
8037-Ketton 52.636537 -0.54737666
And
Postcode Local authority Longitude Latitude
CV21 2RY Rugby -1.288555 52.376856
TR26 2JQ Cornwall -5.490944 50.207428
SY10 7RN Shropshire -3.067703 52.917641
SA71 5SJ Pembrokeshire -5.02713 51.686093
PE9 3SX Rutland -0.5462 52.636828
By best matching both the latitude and longitude data from the first table with the second, the postcode and local authority will be known.
Output: Sitename, Postcode, Local authority,
I appreciate your help with this.
4 件のコメント
Joel Lynch
2021 年 6 月 9 日
Without knowing how this data is stored in MATLAB's workspace, or how it is stored in external data files, it is impossible to provide a clear answer.
Also, are you intending to locate the closest coordinates? Or are you expecting exact lat/long matches?
AHMED FAKHRI
2021 年 6 月 9 日
AHMED FAKHRI
2021 年 6 月 9 日
dpb
2021 年 6 月 9 日
See
doc pdist2
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Lengths and Angles についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!