Mercurial > hg > octave-jordi
changeset 10943:90450db218e4
Allow the delaunay function to treat matrices of the same size for compatibility
author | David Bateman <dbateman@free.fr> |
---|---|
date | Fri, 03 Sep 2010 21:35:11 +0200 |
parents | 48a1812fcc3a |
children | a7655cdba470 |
files | scripts/ChangeLog scripts/geometry/delaunay.m |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2010-07-07 David Bateman <dbateman@free.fr> + + * geometry/delaunay.m: Allow the delaunay function to treat + matrices of the same size for compatibility. + 2010-09-03 Ben Abbott <bpabbott@mac.com> * image/image.m: Matlab compatible axis limits, add demo.
--- 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)