How to interpolate NaN in a 3d grid?

5 vues (au cours des 30 derniers jours)
Miguel andres
Miguel andres le 24 Juin 2020
Commenté : Miguel andres le 24 Juin 2020
Hi all,
I have a 3D grid with lon, lat and time (size= 40x144x720) with some NaN. I need to interpolate using a linear method this NaN values.
I have tries with interp1gap and some loops, but I have some errors with that function.:
n=720
for i=1:40
for j=1:144
for k=1:n
mod_atl_filtrado(i,j,k)=interp1gap(mod_atl(i,j,k)');
end
end
end
Do you know how to do this?
Thank you very much

Réponse acceptée

John D'Errico
John D'Errico le 24 Juin 2020
  1 commentaire
Miguel andres
Miguel andres le 24 Juin 2020
Great!! Thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Interpolation of 2-D Selections in 3-D Grids 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