comparison scripts/geometry/voronoi.m @ 14335:ce2b59a6d0e5

maint: periodic merge of stable to default.
author Rik <octave@nomad.inbox5.com>
date Sun, 05 Feb 2012 15:32:24 -0800
parents 11949c9795a0 4d917a6a858b
children 5d3a684236b0
comparison
equal deleted inserted replaced
14333:6dd710b73150 14335:ce2b59a6d0e5
40 ## [@var{vx}, @var{vy}] = voronoi(@dots{}) returns the Voronoi vertices 40 ## [@var{vx}, @var{vy}] = voronoi(@dots{}) returns the Voronoi vertices
41 ## instead of plotting the diagram. 41 ## instead of plotting the diagram.
42 ## 42 ##
43 ## @example 43 ## @example
44 ## @group 44 ## @group
45 ## x = rand (10, 1); 45 ## x = rand (10, 1);
46 ## y = rand (size (x)); 46 ## y = rand (size (x));
47 ## h = convhull (x, y); 47 ## h = convhull (x, y);
48 ## [vx, vy] = voronoi (x, y); 48 ## [vx, vy] = voronoi (x, y);
49 ## plot (vx, vy, "-b", x, y, "o", x(h), y(h), "-g") 49 ## plot (vx, vy, "-b", x, y, "o", x(h), y(h), "-g");
50 ## legend ("", "points", "hull"); 50 ## legend ("", "points", "hull");
51 ## @end group 51 ## @end group
52 ## @end example 52 ## @end example
53 ## 53 ##
54 ## @seealso{voronoin, delaunay, convhull} 54 ## @seealso{voronoin, delaunay, convhull}
55 ## @end deftypefn 55 ## @end deftypefn