Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

voronoi (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: geometry

Requires: MathScript RT Module

Syntax

voronoi(a, b)

[x, y] = voronoi(a, b)

Description

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.

Examples

Inputs

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).

Outputs

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.

Details

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

Examples

A = rand(12, 1);
B = rand(12, 1);
voronoi(A, B);

Related Topics

convexhull
delaunay
is_inpolygon
rand


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit