Owning Class: geometry
Requires: MathScript RT Module
[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.
|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).|
|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.|
The following table lists the support characteristics of this function.
|Supported in the LabVIEW Run-Time Engine||No (returns error or is ignored)|
|Supported on RT targets||No|
A = rand(12, 1);
B = rand(12, 1);