MATLAB Answers


How can I find the exact value of the corresponding point in specific longitude and latitude?

Asked by Farshid Daryabor on 18 Oct 2019
Latest activity Commented on by Farshid Daryabor on 21 Oct 2019
I have problem to extract exact value in projection coordinate, I actually want to extract the exact value of the point with a specific latitude and longitude (e.g., lat=45.2 and lon=28.7) from the attached data. I really appreciate anybody can help.


comment by Farshid Daryabor:
I really appreciate your prompt response
"xy.mat" are the projection 'x' and 'y' coordinate in meters.

Sign in to comment.

1 Answer

Answer by Andrei Bobrov
on 18 Oct 2019
Edited by Andrei Bobrov
on 18 Oct 2019

F1 = scatteredInterpolant(LAT,LON,data)
F2 = scatteredInterpolant(LAT,LON,xx);
F3 = scatteredInterpolant(LAT,LON,yy);
out = [F1(lat,lon),F2(lat,lon),F3(lat,lon)];


comment by Farshid Daryabor:
Dear Andrei
What do you mean 'lon' and 'lat' in the following comment, is especific lon & lat for example lat=45.2 and lon=28.7?
out = [F1(lat,lon),F2(lat,lon),F3(lat,lon)];
Dear Andrei,
it's weird for me, the power of values derived from "out = [F1(lat,lon),F2(lat,lon),F3(lat,lon)]" is compeltly different from the expected power from "var = F1.Values". For instance,

Sign in to comment.