diff scripts/geometry/voronoin.m @ 11469:c776f063fefe

Overhaul m-script files to use common variable name between code and documentation.
author Rik <octave@nomad.inbox5.com>
date Sun, 09 Jan 2011 12:41:21 -0800
parents be55736a0783
children fd0a3ac60b0e
line wrap: on
line diff
--- a/scripts/geometry/voronoin.m
+++ b/scripts/geometry/voronoin.m
@@ -19,7 +19,7 @@
 ## -*- texinfo -*-
 ## @deftypefn  {Function File} {[@var{C}, @var{F}] =} voronoin (@var{pts})
 ## @deftypefnx {Function File} {[@var{C}, @var{F}] =} voronoin (@var{pts}, @var{options})
-## computes n- dimensional Voronoi facets.  The input matrix @var{pts}
+## Compute N-dimensional Voronoi facets.  The input matrix @var{pts}
 ## of size [n, dim] contains n points of dimension dim.
 ## @var{C} contains the points of the Voronoi facets.  The list @var{F}
 ## contains for each facet the indices of the Voronoi points.
@@ -37,7 +37,7 @@
 ## Added optional second argument to pass options to the underlying
 ## qhull command
 
-function [C, F] = voronoin (pts, opt)
+function [C, F] = voronoin (pts, options)
 
   if (nargin != 1 && nargin != 2)
     print_usage ();
@@ -47,8 +47,8 @@
   if (np > dims)
     if (nargin == 1)
       [C, F, infi] = __voronoi__ (pts);
-    elseif ischar(opt)
-      [C, F, infi] = __voronoi__ (pts, opt);
+    elseif (ischar (options))
+      [C, F, infi] = __voronoi__ (pts, options);
     else
       error ("voronoin: second argument must be a string");
     endif