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

 採用された回答

José-Luis
José-Luis 2017 年 8 月 9 日
編集済み: José-Luis 2017 年 8 月 9 日

1 投票

data = rand(10,10,100)
for ii=1:100
subset = data(:,:,ii); %Copy probably unnecessary, left for clarity
do_your_thing(subset)
end

2 件のコメント

Pankaj Dey
Pankaj Dey 2017 年 8 月 9 日
Thank you Jose-Luis.
José-Luis
José-Luis 2017 年 8 月 9 日
My pleasure!

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Interpolation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by