Is griddedinterpolant omits NaN?

8 visualizaciones (últimos 30 días)
BN
BN el 27 de Mzo. de 2020
Respondida: darova el 27 de Mzo. de 2020
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?

Respuesta aceptada

darova
darova el 27 de Mzo. de 2020
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

Más respuestas (0)

Categorías

Más información sobre Interpolation en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by