フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Regarding Data interpolation

1 回表示 (過去 30 日間)
Uday
Uday 2011 年 8 月 12 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have some global dataset which includes latitude, longitude and CO2 value.
I am planning to plot 2D surface maps for certain area e.g Thailand. So far what I have done is
match=find(latitude<=21 & latitude <=6 & longitude 106,longitude =97);
lat_N=latitude (match);
lon_N=longitude(match);
co2_N=co2(match);
F=TriScatteredInterp(lon_N,lat_N,co2_N);% =TriScatteredInter
lat_Grid=6:0.5:21;
lon_Grid=97:0.5:106;
[xlongrid,ylatgrid]=meshgrid(lon_Grid,lat_Grid);
and then I plotted using sufracem function .
This shows me out put but its not good.
after this I tried griddata function too , but still it does not work.
So is there any one knows how to fix this problem.
Thank you

回答 (1 件)

bym
bym 2011 年 8 月 12 日
Maybe getting the right data would help, your match variable contains some constraints I don't believe you intended. compare to:
match = find(latitude>=6 & latitude <=20 & longitude >= 97 & longitude <= 106)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by