How to used 'griddedinterpolant' command in for loop?

1 vue (au cours des 30 derniers jours)
Pankaj Dey
Pankaj Dey le 9 Août 2017
Commenté : José-Luis le 9 Août 2017
For example, I have a geospatial data with fixed latitude and longitude with 100 layers(values observed during 100 days) of a variable at 1 degree (latitude) by 1 degree (longitude) resolution. Now I want to interpolate the data into 0.25 degee by 0.25 degree for each of the 100 layers using a "for-loop". How to do proceed for this operation?
Thank you Pankaj

Réponse acceptée

José-Luis
José-Luis le 9 Août 2017
Modifié(e) : José-Luis le 9 Août 2017
data = rand(10,10,100)
for ii=1:100
subset = data(:,:,ii); %Copy probably unnecessary, left for clarity
do_your_thing(subset)
end
  2 commentaires
Pankaj Dey
Pankaj Dey le 9 Août 2017
Thank you Jose-Luis.
José-Luis
José-Luis le 9 Août 2017
My pleasure!

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