| MATLAB Function Reference | ![]() |
Syntax
Description
t = tsearchn(X,TES,XI)
returns the indices t of the enclosing simplex of the Delaunay tessellation TES for each point in XI. X is an m-by-n matrix, representing m points in n-D space. XI is a p-by-n matrix, representing p points in n-D space. tsearchn returns NaN for all points outside the convex hull of X. tsearchn requires a tessellation TES of the points X obtained from delaunayn.
[t,P] = tsearchn(X,TES,XI)
also returns the barycentric coordinate P of XI in the simplex TES. P is a p-by-n+1 matrix. Each row of P is the Barencentric coordinate of the corresponding point in XI. It is useful for interpolation.
See Also
| tsearch | type | ![]() |