How to choose query points when using griddata function
1 回表示 (過去 30 日間)
古いコメントを表示
I have a some 1200x1 arrays. The different arrays consists of values, latitude and longitude. The points is of 4 km resolution. I want to use the griddata function to interpolate to 1km resolution. I have tried this functuion:
vq = griddata(x,y,v,xq,yq).
Where x is latitude, y is longitude, v is values, xq and yq is query points. I dont know how I can choose query points so the grid will be at 1 km resolution.
I really need help.
0 件のコメント
回答 (1 件)
Walter Roberson
2018 年 6 月 14 日
[xq, yq] = ndgrid(min(x):1/4:max(x), min(y):1/4:max(y));
2 件のコメント
Walter Roberson
2018 年 6 月 14 日
編集済み: Walter Roberson
2018 年 6 月 14 日
You said the points are of 4 km resolution, but I get the impression that they are given in units of meters.
[xq, yq] = ndgrid(min(x):1000:max(x), min(y):1000:max(y));
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!