I'm trying to triangulate some data using the griddata function, linear triangulation method. Prior to triangulation the data does not contain any NaNs, however after triangulation there are a number of NaNs in the data that are creating holes in the surface when plotted. Does anyone know why triangulation is creating these holes, and if so, how I can stop it from happening??
Any help appreciated,
Cheers,
Emma
you may want to look at jd's FEX submission GRIDFIT to learn more about the subject and to see how one can deal with it...
http://www.mathworks.com/matlabcentral/fileexchange/8998
us
Use of gridfit is a good choice for the solution.
The nans come about because the triangulation
methods cannot extrapolate beyond the convex
hull of the data, yet you are asking it to interpolate
in that area. So griddata returns a nan there.
John