# Locating any point from a meshgrid

조회 수: 5 (최근 30일)
Ashfaq Ahmed 2023년 9월 18일
댓글: Ashfaq Ahmed 2023년 9월 18일
Hi,
I have a 161x161 double size Latitude matrix for a stereographic projection of north pole. If I contour plot it, it looks like this -
I have another 161x161 double size Longitude matrix for a stereographic projection of north pole. Its' contour looks like this -
Can anyone please tell me if I can merge these two matrix into one so that I essentially get a polar stereographic map. And therefore, I can locate the index of any given point, for example, [87.5°N, 92.62°W], or [81.25°N, 88.19°W] etc
Any feedback will be greatly appreciated.

댓글을 달려면 로그인하십시오.

### 답변 (1개)

Sulaymon Eshkabilov 2023년 9월 18일
If understood your question correctly, in this exercise, use hold on and find the intersection points of the two. There are a few function files on MATLAB central which can be employed in this case, e.g., https://www.mathworks.com/matlabcentral/fileexchange/11837-fast-and-robust-curve-intersections?s_tid=FX_rc3_behav
##### 댓글 수: 1이전 댓글 -1개 표시이전 댓글 -1개 숨기기
Ashfaq Ahmed 2023년 9월 18일
Dear Dr. Sulaymon,
Thank you for your comment. You have previously helped me a lot with my other questions too. I really appreacite it.
For this problem, I am actually not looking for any intersection points of two curves. What I am looking for can be simply explained this way -
I have a SST = 161x161x288 double size matrix of sea surface temperature. Here, 161x161 is the grid system, and 288 is the number of days. My target is to locate specific temperatures of everyday and the location coordinates are coming from the Position.mat file. Position.mat is a 288x2 double size and it is giving different location in everyday. Problem is, the grid system of SST is a stereographic grid combination of the Latitude and Longitude that I have attached.
My question is: How can I get the 288 locations from Position.mat in the SST matrix?

댓글을 달려면 로그인하십시오.

### 카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

### Community Treasure Hunt

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

Start Hunting!

Translated by