interpolation from matrix to grid

Hello everyone,
I have a matrix of 21x7 with wind data from a reanalisys. I need to create a 2D grid so each point of the grid correspond to the mean of all the corners ( the 4 nearest datas from the matrix)
I create the grid with meshgrid but I don't know how to field it with than mean. I tried with interpolation but I don´t get the right answer.
Thank you really much.

回答 (1 件)

Walter Roberson
Walter Roberson 2020 年 12 月 29 日

0 投票

interpolated_wind = conv2(wind, ones(2,2)/4, 'valid');

カテゴリ

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

質問済み:

2020 年 12 月 29 日

回答済み:

2020 年 12 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by