Owning Class: geometry
Requires: MathScript RT Module
voronoi(a, b)
[x, y] = voronoi(a, b)
Generates the Voronoi diagram of specified points in a plane. If you do not request an output, this function plots the Voronoi diagram in conjunction with the original points in the current plot window.
| Name | Description |
|---|---|
| a | Specifies a vector of x-coordinates of points in the plane. |
| b | Specifies a vector of y-coordinates of points in the plane. length(b) must equal length(a). |
| Name | Description |
|---|---|
| x | Returns a 2-by-n matrix of real numbers. n is the number of x-coordinates of Voronoi points. LabVIEW defines the edges of the Voronoi diagram by all lines from (x(k), y(k)) to (x(k + 1), y(k + 1)). |
| y | Returns a 2-by-n matrix of real numbers. n is the number of y-coordinates of Voronoi points. |
This function is not supported in the LabVIEW Run-Time Engine if you request an output from the function. Either do not request an output or remove this function from scripts before you build a stand-alone application or shared library.
A = rand(12, 1);
B = rand(12, 1);
voronoi(A, B);