diff scripts/geometry/voronoin.m @ 13203:b6aba5b4edb1

voronoin: accept options as a cell array of character strings * __voronoi__.cc (F__voronoi__): Accept options as cell array of character strings. Use std::string for buffer. Don't use fixed size for char* buffer that is passed to qh_new_qhull. * voronoin.m: Accept options as cell array of character strings.
author John W. Eaton <jwe@octave.org>
date Fri, 23 Sep 2011 15:03:29 -0400
parents fd0a3ac60b0e
children 7ff0bdc3dc4c
line wrap: on
line diff
--- a/scripts/geometry/voronoin.m	Fri Sep 23 13:11:36 2011 -0500
+++ b/scripts/geometry/voronoin.m	Fri Sep 23 15:03:29 2011 -0400
@@ -47,10 +47,10 @@
   if (np > dims)
     if (nargin == 1)
       [C, F, infi] = __voronoi__ (pts);
-    elseif (ischar (options))
+    elseif (ischar (options) || iscellstr (options))
       [C, F, infi] = __voronoi__ (pts, options);
     else
-      error ("voronoin: second argument must be a string");
+      error ("voronoin: second argument must be a string or cell array of strings");
     endif
 
   else