フィルターのクリア

Faster repeated interp3 and griddata

16 ビュー (過去 30 日間)
REDI PONI
REDI PONI 2020 年 9 月 1 日
コメント済み: REDI PONI 2020 年 9 月 4 日
Hi,
I am asking a question for interp3 and griddata , but in principle the problem is the same.
Suppose i have N-functions with different data scattered data in 3D which i want to interpolate to a structured 3D grid using griddata.
The locations of the scattered data and the new 3D grid is always the same. Is it possible to accelerate the process for multiple interpolations given that the geometry information is the same for all N-functions?
Repeating the inverse (from 3D structured grid to scattered points ) i am using interp3. I would like to improve speed also in this process, since the geometry is the same too.
Thank you,
Redi

採用された回答

Steven Lord
Steven Lord 2020 年 9 月 1 日
Create a scatteredInterpolant object and change the Values property for each of your new set of data as per the "Replacement of Sample Values" example on that page. For the other direction, gridded data to scattered points, see griddedInterpolant.
  1 件のコメント
REDI PONI
REDI PONI 2020 年 9 月 4 日
Thanks.
Works fine.

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

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by