Create Mesh Grid (2D) (x,y arrays) VI
- Updated2025-07-30
- 2 minute(s) read
Takes two x domain and y domain arrays and forms X and Y 2D arrays, which are typically used to evaluate and plot functions of two variables. You must manually select the polymorphic instance to use.

Inputs/Outputs
x domain
—
x domain becomes the repeated row data in the output X.
y domain
—
y domain becomes the repeated column data in the output Y.
X
—
X is an N x M 2D array formed by creating N identical rows of x domain data, where N is the number of elements in y domain, and M is the number of elements in x domain.
Y
—
Y is an N x M 2D array formed by creating M identical columns of y domain data, where N is the number of elements in y domain, and M is the number of elements in x domain.
error
—
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster. |
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Mathematics\Interpolation\2D Interpolation.vi
x domain
—
X
—
error
—