Skip to main content

Interp4D

Interp4D (srcWave, x, y, z, t)

The Interp4D function returns an interpolated value for location P=(x, y, z, t) in a 4D scalar distribution srcWave.

If srcWave is a 4D wave containing a scalar distribution sampled on a regular lattice, the function returns a linearly interpolated value for any P=(x, y, z, t) location within the domain of srcWave. If P is outside the domain, the function returns NaN.

Example

Make/O/N=(10,20,30,40) ddd=x+10*y+100*z+1000*t
Print interp4d(ddd,1,2,3,4.1)
4421

See Also

Interpolation overview. The ImageInterpolate, Interpolate2, Interp3DPath, Interp4DPath, Interpolate3D, SphericalInterpolate, Interp4DPath operations and the interp, Interp2D, and Interp3D functions.