interpolate()
Interpolates data
Syntax
y = interpolate(InterpType,Data,iVar1,iVal1,iVar2,iVal2,....,iVarN,iValN)
Arguments
| Name | Description | Range | Type | Required |
|---|---|---|---|---|
| InterpType | Type of interpolation | "linear", "cubic", "spline" | string | yes |
| Data | Data to interpolate | integer, real | yes | |
| iVar1, iVar2,. | Dimension of independent variable to interpolate | integer | yes | |
| iVal1, iVal2,. | values to interpolate | integer, real | yes |
Examples
linI = interpolate("linear", colY, 1,[1::0.5::4])
cubicI = interpolate("cubic", colY, 1,[1::0.2::2])
splineI = interpolate("spline", colY, 1,[-2::0.2::2])
For a 2-D data with 2 independents, the following interpolates dimension 1 (inner-most) from 1 to 4 in steps of 0.5 and second dimension at 0.5:
linI = interpolate("linear", colY, 1,[1::0.5::4],2,0.5)
Defined in
Built in
See also
Notes/Equations
This function can interpolate data over multiple dimensions.
Privacy
Statement
|
Terms of Use
|
Legal |
Contact Us
|
© Agilent 2000-2008 ![]()