Function Reference
— Function File: idx = dsearchn (x, tri, xi)
— Function File: idx = dsearchn (x, tri, xi, outval)
— Function File: idx = dsearchn (x, xi)
— Function File: [idx, d] = dsearchn (...)

Returns the index idx or the closest point in x to the elements xi. If outval is supplied, then the values of xi that are not contained within one of the simplicies tri are set to outval. Generally, tri is returned from delaunayn (x).

See also: dsearch tsearch