Mercurial > hg > octave-shane
changeset 9271:1e96773920e9
geometry/delaunay.m: support cellstr's as options
author | Soren Hauberg <hauberg@gmail.com> |
---|---|
date | Wed, 27 May 2009 09:09:08 +0200 |
parents | f9ac007bb926 |
children | 3eda945bda43 |
files | scripts/ChangeLog scripts/geometry/delaunay.m |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2009-05-27 Søren Hauberg <hauberg@gmail.com> + + * geometry/delaunay.m: Support cellstr's as options. + 2009-05-27 Jaroslav Hajek <highegg@gmail.com> * plot/imshow.m: Fix handling of indexed images.
--- a/scripts/geometry/delaunay.m +++ b/scripts/geometry/delaunay.m @@ -53,7 +53,7 @@ if (isvector (x) && isvector (y) && length (x) == length (y)) if (nargin == 2) tri = delaunayn ([x(:), y(:)]); - elseif (ischar (opt)) + elseif (ischar (opt) || iscellstr (opt)) tri = delaunayn ([x(:), y(:)], opt); else error ("delaunay: third argument must be a string");