Extract data between 2 point over a 2d matrix.
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Claudio Iturra
am 17 Okt. 2022
Kommentiert: Claudio Iturra
am 18 Okt. 2022
Hello!
Im trying to extract the batrymetry data between 2 coordinate points (a and b). I found the cordinates position of my LON and Lat values, and NOW I need to find the way to extrac a line of data between those 2 points, I will apreciate any suggestions, Thanks.
LAT 3121x1681
LON 3121x1681
depth 3121x1681
pcolor(LON,LAT,depth);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1159863/image.png)
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 17 Okt. 2022
improfile() or interp2() (which is what improfile uses)
You do have a potential issue if you are using a nonlinear coordinate space over a region large enough for the nonlinearity to be important. You would have to be careful about which space you are interpolating in.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Price and Analyze Financial Instruments finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!