Interplolation of two different data set in a same grid interface

1 回表示 (過去 30 日間)
Abhishek Savita
Abhishek Savita 2019 年 11 月 11 日
回答済み: Ayush Gupta 2020 年 6 月 8 日
Hi all, G'day.
I have a query about the grid interface ionterpolation. Suppose I have two data set as tx_trans with dimension lon, lat and depth (360,300,50) at a grid interface and another variable temperatrure with same dimension and size i.e. (360,300,50) at a center of the grid. I want to interpolate temperatrure data in to tx_trans grid i.e. temperature at a grid interface. Any idea or siggestion?
Thanks in advance!
Abhi

回答 (1 件)

Ayush Gupta
Ayush Gupta 2020 年 6 月 8 日
The hold on piece of code can be used for the interpolation of two different datasets in a same grid interface, for example:
Suppose X,Y,Z is the grid and data sets to interpolate are(X1,Y1) and (X2,Y2). The following method will be helpful
V1 = interp2(X,Y,Z,X1,Y1);
V2 = interp2(X,Y,Z,X2,Y2);
surf(X1,Y1,V1);
hold on;
surf(X2,Y2,V2);
hold off;

カテゴリ

Help Center および File ExchangeSpline Postprocessing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by