# HG changeset patch # User David Bateman # Date 1283542511 -7200 # Node ID 90450db218e46e780128980023bd7c3016aa8979 # Parent 48a1812fcc3a433a1b588c2bc61f232fc507b8d1 Allow the delaunay function to treat matrices of the same size for compatibility diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2010-07-07 David Bateman + + * geometry/delaunay.m: Allow the delaunay function to treat + matrices of the same size for compatibility. + 2010-09-03 Ben Abbott * image/image.m: Matlab compatible axis limits, add demo. diff --git a/scripts/geometry/delaunay.m b/scripts/geometry/delaunay.m --- a/scripts/geometry/delaunay.m +++ b/scripts/geometry/delaunay.m @@ -50,7 +50,8 @@ print_usage (); endif - if (isvector (x) && isvector (y) && length (x) == length (y)) + if ((isvector (x) && isvector (y) && length (x) == length (y)) + || size_equal (x, y)) if (nargin == 2) tri = delaunayn ([x(:), y(:)]); elseif (ischar (opt) || iscellstr (opt)) @@ -59,7 +60,7 @@ error ("delaunay: third argument must be a string"); endif else - error ("delaunay: first two input arguments must be vectors of same size"); + error ("delaunay: first two input arguments must be matrices of same size"); endif if (nargout == 0)