Interpolate data around a point

Hy guys , I have a matrix of data on a grid. P=45*25 matrix lat=45*25 matrix long=45*25 matrix and I want to interpolate this data around a point inside the grid. Someone could help me plese? Thank you very much in advance.

 採用された回答

Matt J
Matt J 2018 年 7 月 8 日

0 投票

interp2(lat,long,P,____)

5 件のコメント

Emrys
Emrys 2018 年 7 月 8 日
Dear Matt J, thank you very much for the answer, what do you mean with this ? ---> __) Sorry if I ask
Matt J
Matt J 2018 年 7 月 8 日
編集済み: Matt J 2018 年 7 月 8 日
There are additional arguments needed to tell interp2 at what point you wish to interpolate P.
Emrys
Emrys 2018 年 7 月 8 日
Yes, I got it. My problem was understanding which kind of arguments I have to pass. Xq and Yq contain the coordinates of the query points. What I expect from interp2 is a unique value from the matrix. And I cannot understand how to tell him to do it. Imagine that I have a point (long,lat) around around which i want to interpolate all the matrix data. How could I tell to interp2 this?
Matt J
Matt J 2018 年 7 月 8 日
編集済み: Matt J 2018 年 7 月 8 日
Imagine that I have a point (long,lat) around around which i want to interpolate all the matrix data. How could I tell to interp2 this?
(Xq,Yq) would be that point.
Emrys
Emrys 2018 年 7 月 9 日
Thank you very much. It works.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeInterpolation についてさらに検索

タグ

質問済み:

2018 年 7 月 8 日

コメント済み:

2018 年 7 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by