Mercurial > octave-antonio
diff scripts/geometry/dsearchn.m @ 11587:c792872f8942
all script files: untabify and strip trailing whitespace
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:35:29 -0500 |
parents | fd0a3ac60b0e |
children | d0b799dafede |
line wrap: on
line diff
--- a/scripts/geometry/dsearchn.m Thu Jan 20 17:24:59 2011 -0500 +++ b/scripts/geometry/dsearchn.m Thu Jan 20 17:35:29 2011 -0500 @@ -23,8 +23,8 @@ ## @deftypefnx {Function File} {[@var{idx}, @var{d}] =} dsearchn (@dots{}) ## Returns the index @var{idx} or the closest point in @var{x} to the elements ## @var{xi}. If @var{outval} is supplied, then the values of @var{xi} that are -## not contained within one of the simplices @var{tri} are set to -## @var{outval}. Generally, @var{tri} is returned from @code{delaunayn +## not contained within one of the simplices @var{tri} are set to +## @var{outval}. Generally, @var{tri} is returned from @code{delaunayn ## (@var{x})}. ## @seealso{dsearch, tsearch} ## @end deftypefn @@ -47,8 +47,8 @@ endfunction %!shared x, tri -%! x = [-1,-1;-1,1;1,-1]; -%! tri = [1,2,3]; +%! x = [-1,-1;-1,1;1,-1]; +%! tri = [1,2,3]; %!assert (dsearchn(x,tri,[1,1/3]), 3); %!assert (dsearchn(x,tri,[1,1/3],NaN), NaN); %!assert (dsearchn(x,tri,[1,1/3],NA), NA);