フィルターのクリア

Is griddedinterpolant omits NaN?

10 ビュー (過去 30 日間)
BN
BN 2020 年 3 月 27 日
回答済み: darova 2020 年 3 月 27 日
Hey all, I want to know when we using griddedinterpolant while we have some NaN in our data set, are they NaNs fills by griddedinterpolant? Or they remain as NaN?

採用された回答

darova
darova 2020 年 3 月 27 日
You can find out by yourself
[X,Y] = meshgrid(0:10);
Z = 0*X;
Z(5:7,5:7) = nan;
surf(X,Y,Z,'edgecolor','none')
[X1,Y1] = meshgrid(0:0.4:10);
Z1 = griddata(X,Y,Z,X1,Y1);
hold on
surf(X1,Y1,Z1,'facecolor','none')
hold off

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by