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

intrp2d_uneven (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

ZS = intrp2d_uneven(X, Y, Z, XS, YS)

ZS = intrp2d_uneven(X, Y, Z, XS, YS, method)

[XS, YS, ZS] = intrp2d_uneven(X, Y, Z, XS, YS)

[XS, YS, ZS] = intrp2d_uneven(X, Y, Z, XS, YS, method)

Legacy Name: griddata

Description

Fits a surface to the unevenly distributed sample points that you specify. The resulting fit passes through all the specified sample points.

Examples

Inputs

Name Description
X Specifies the x-coordinates. X is a vector or a real matrix. If X is a vector, LabVIEW converts X into a matrix by repeating the vector.
Y Specifies the y-coordinates. Y is a vector or a real matrix of the same size as X. If Y is a vector, LabVIEW converts Y into a matrix by repeating the vector.
Z Specifies the z-coordinates. Z is a real matrix of the same size as X.
XS Specifies a real matrix of x-coordinates that represent the x-coordinates of the interpolation points.
YS Specifies a real matrix of y-coordinates that represent the y-coordinates of the interpolation points.
method Specifies the interpolation method to use. method is a string that accepts the following values.

'linear' (default) Linear interpolation (non-smooth)
'cubic' Cubic interpolation (smooth)
'nearest' Nearest neighbor method (non-smooth)
'v4' Biharmonic Spline interpolation (smooth)

Outputs

Name Description
XS Returns the input matrix XS unchanged.
YS Returns the input matrix YS unchanged.
ZS Returns a real matrix that represents the calculated surface at (XS, YS).

Details

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized

Examples

X = rand(5, 5);
Y = rand(5, 5);
Z = X.^2+Y.^2;
[XS, YS] = meshgrid2d(0:0.1:1);
[XS, YS, ZS] = intrp2d_uneven(X, Y, Z, XS, YS, 'v4');
surface(XS, YS, ZS)

Related Topics

convexhull
delaunay
meshgrid2d
rand
surface


 

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