FUNCTION REFERENCE
interp3
Interpolate three-dimensional gridded data in meshgrid layout.
Interpolate three-dimensional gridded data in meshgrid layout.
Syntax
Vq = interp3(V, Xq, Yq, Zq)Syntax
Vq = interp3(X, Y, Z, V, Xq, Yq, Zq, method, extrapval)Methods are 'linear', 'nearest', 'cubic' and 'spline'. Method names are case-insensitive and accept a leading '*'. Nearest selects the higher grid point at a tie. Cubic uses cubic convolution on uniform grids and spline uses a not-a-knot spline. Outside points return NaN unless extrapval is given. Single V returns single values.
Example
interp3(ones(3, 3, 3), 1.5, 1.5, 1.5) % 1Differences from MATLAB: Grids must be increasing. Cubic uses a spline on nonuniform grids and supports two-point axes. Queries must have equal sizes. Spline uses the same outside fill as the other methods.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.