Extract data between 2 point over a 2d matrix.

1 回表示 (過去 30 日間)
Claudio Iturra
Claudio Iturra 2022 年 10 月 17 日
コメント済み: Claudio Iturra 2022 年 10 月 18 日
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);

採用された回答

Walter Roberson
Walter Roberson 2022 年 10 月 17 日
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.
  1 件のコメント
Claudio Iturra
Claudio Iturra 2022 年 10 月 18 日
Thanks Walter!

サインインしてコメントする。

その他の回答 (0 件)

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by