How to interpolate scattered grid data

1 vue (au cours des 30 derniers jours)
Kamran Mukhtar
Kamran Mukhtar le 8 Août 2019
Hi
I have some scattered data (z-values which are complex) on different latitude and longitude. I want to interpolate it uniformly so that I can fil the missing values of latitude and longitude.
  1 commentaire
Walter Roberson
Walter Roberson le 8 Août 2019
griddata() can be used with complex values -- I just tried it.

Connectez-vous pour commenter.

Réponse acceptée

Kamran Mukhtar
Kamran Mukhtar le 8 Août 2019
Thanks for your answer. Do you also know if we can also do extrapolation not necessarily too far but nearby cells ?

Plus de réponses (2)

Kamran Mukhtar
Kamran Mukhtar le 8 Août 2019
Would you be sharing it as well?
  1 commentaire
Walter Roberson
Walter Roberson le 8 Août 2019
Use the 'v4' option of griddata.
"For all interpolation methods other than 'v4', the output vq contains NaN values for query points outside the convex hull of the sample data. The 'v4' method performs the same calculation for all points regardless of location."

Connectez-vous pour commenter.


Kamran Mukhtar
Kamran Mukhtar le 9 Août 2019
Thanks for your answer, saving my time. btw,I also have explored 'scatteredInterpolant' which also does extrapolation.

Catégories

En savoir plus sur Interpolation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by