How to find the closest point to lat/lon?

2 views (last 30 days)
Lilya
Lilya on 6 Dec 2022
Edited: John D'Errico on 3 Feb 2023
Hi all,
I have two grids grid 1 and grid 2, which I want to find the closest points of grid2 to the points in grid.
Both grids are in latitude and longitude.
I would appreciate your help as I am struggling.
  2 Comments
Jonas
Jonas on 6 Dec 2022
please support your question with the data attached as .mat
John D'Errico
John D'Errico on 3 Feb 2023
Edited: John D'Errico on 3 Feb 2023
Closest point in terms of true distance traveled along the surface (so the distance along a great circle?) Or simply a closest point in terms of some metric in degrees? The two would be different.

Sign in to comment.

Answers (0)

Categories

Find more on Resizing and Reshaping Matrices in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!