36 views (last 30 days)

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

Sign in to answer this question.

Opportunities for recent engineering grads.

Apply Today
## 14 Comments

## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_789962

⋮## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_789962

## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_789966

⋮## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_789966

## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_789971

⋮## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_789971

## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_789985

⋮## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_789985

## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_789991

⋮## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_789991

## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_789993

⋮## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_789993

## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_789995

⋮## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_789995

## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_789996

⋮## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_789996

## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_789999

⋮## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_789999

## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_790000

⋮## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_790000

## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_790003

⋮## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_790003

## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_790006

⋮## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_790006

## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_790012

⋮## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_790012

## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_790018

⋮## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/501961-how-to-find-the-nearest-point-for-71-points#comment_790018

Sign in to comment.