griddedInterpolant .m code file

12 ビュー (過去 30 日間)
Christos Zoupis-Schoinas
Christos Zoupis-Schoinas 2016 年 9 月 28 日
コメント済み: KSSV 2016 年 9 月 29 日
I am trying to create a program on python based on one i made on MATLAB.
I used griddedInterpolant:
F = griddedInterpolant(X,Y,Z,V,method,extrap)
but when i am trying to open the .m file in order to see the exact process and made the same on python i only get a file with comments. Where can i see the exact steps MATLAB uses for this function?
  6 件のコメント
Christos Zoupis-Schoinas
Christos Zoupis-Schoinas 2016 年 9 月 29 日
Seems like you are right, just got an answer back from them saying that it is proprietary code..
KSSV
KSSV 2016 年 9 月 29 日
check numpy, scipy module in python. It has the code you are looking for.

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

採用された回答

KSSV
KSSV 2016 年 9 月 29 日
I suggest you to pick a numerical method book and read it......this interpolation is not that tough to implement. Such scattered interpolations depend on nearest neighboring points. Algorithm:
1. Run a loop for every point of the new grid
2. Get the neighboring points of the i'th point in the old grid.
3. Do the average of the values. (Average many options are avl.)
4. Assign the average value to the i'th point.

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 9 月 29 日
You can switch to Delaunay triangulation, which in turn was formerly implemented by calling convex hull that was based upon Qhull

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by