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!