Interpolates a 3D dataset from a tetrahedral grid to another tetrahedral or a rectilinear grid. The data can be complex.
This function is typically used for resampling data evaluated originally in a finite element mesh (monitor data from CHARGE, for example) to a new rectilinear grid.
[[Note:]] Since 2020a R7, [[interptet]] can interpolate a data set from a tetrahedral to a rectangular grid or to a list of points. The data can be vectorial. 
Syntax 
Description 

out = interptet(tet, vtx, u, xi, yi, zi, extrap_val); out = interptet(tet, vtx, u, xi, yi, zi, extrap_val, "rectilinear");

Does a tetrahedral to rectilinear interpolation of a function and outputs a PxQxRxS array of interpolated values, f(xi,yi,zi,p).

out = interptet(tet, vtx, u, xi, yi, zi, extrap_val, "unstructured");

Does a tetrahedral to point cloud interpolation of a function and outputs a PxS array of interpolated values.

Example
See the example for the interptri script function.
See Also