フィルターのクリア

Interpolate y and y using a 3D vector with similar length

34 ビュー (過去 30 日間)
Jorge Luis
Jorge Luis 2024 年 7 月 15 日 21:57
コメント済み: Star Strider 2024 年 7 月 16 日 10:38
Hello, I have a a matrix with 3 coordinates (each column) x, y, and z. Each column has the same length. I would like to interpolate a especific coordinate xi and yi to obtain zi using the main matriz. Besides, I would like to generate a surface plot using the codinates x,y and z. I know that z should be a matrix mxn in order to do that based on the number of elements m and n according to x and y, respectively. It is worth mentioning that x, y and z are longitude, latitude and depth respectively. I would appreciate the help.

採用された回答

Star Strider
Star Strider 2024 年 7 月 15 日 22:06
To do the relatively simple first interpolation, use the interp2 function.
Tto draw the surface plot, the best option is the scatteredInterpolant function.
Both of these are relatively easy to use. I can help with specific problems using them.
  7 件のコメント
Jorge Luis
Jorge Luis 2024 年 7 月 16 日 7:57
I appreciate your help. Thank you very much :).
Star Strider
Star Strider 2024 年 7 月 16 日 10:38
As always, my pleasure!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurfaces, Volumes, and Polygons についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by