Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

meshgrid (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the geometry class.

Syntax

[X, Y] = meshgrid(x)

[X, Y] = meshgrid(x, y)

Description

Generates arrays that you can use to evaluate functions of two variables. [X, Y] = meshgrid(x) is equivalent to [X, Y] = meshgrid(x, x).

Examples

Inputs

Name Description
x Specifies points along the first dimension. x is a vector of real or complex numbers.
y Specifies points along the second dimension. y is a vector of real or complex numbers.

Outputs

Name Description
X Returns an m-by-l matrix, where l is the length of x and m is the length of y. The rows of X are copies of x.
Y Returns an m-by-l matrix. The columns of Y are copies of y.

Examples

[X, Y] = meshgrid([1, 2, 3], [4, 5, 6, 7]);
[X, Y] = meshgrid([1, 2, 3])
[X, Y] = meshgrid([1, 2, 3]);

Related Topics

mesh
surf


Resources


 

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