Clear Filters
Clear Filters

How to find the nearest point for 71 points?

2 views (last 30 days)
BN
BN on 25 Jan 2020
Commented: BN on 26 Jan 2020
Hey all,
I have coordinates.mat which includes the name of 71 climate stations and corresponding latitude and longitude. I want to know the nearest stations. I want something like this:
Station lat lon NEAR_STATION *(NEW COLUMN IN FRONT OF EACH ROW)*
------------------------------------------------------------------------------------------
Ahvaz 20.32 33.3 Abadan
Abadan 20.30 33 Ahvaz
Tehran 36.72 52.5 Qum
I want to find the nearest stations for all these 71 stations. once I know what is the name of the nearest station I can go ahead and using linear regression to reconstruct missing data.
thank you in advance
I attached coordinates.mat
  14 Comments
BN
BN on 26 Jan 2020
I modify my question and post it. Thank you I learn so many things here.

Sign in to comment.

Answers (0)

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!