ContentsIndexReferenceHome
PreviousUpNext
xinterpn
MATLAB
y  = xinterpn(m, x, xi)
Description

Perform n-dimensional linear interpolation in very much the same manner as the Matlab function interpn. If this function is called one interpolation point at a time, interpolation will occur approximately three times faster than the native Matlab implementation. If a matrix of interpolation points is provided to this function, the speed advantage will increase beyond a factor of three.

Parameters
Parameters 
Description 
m [matrix] 
Data table to be interpolated. 
x [cell] 
Cell array with the axes for the table. Each cell must contain a vector whose length matches the corresponding dimension size of the data table, m. 
xi [matrix] 
Interpolation points. This matrix must be N by # of dimensions in table, m, where N is the number of returned interpolation points. 
Return Values
Return Values 
Description 
y [vector] 
Vector (Nx1) of Interpolated values. 
Examples

  • m = rand(10, 20, 30, 40);
  • x = { [ 1:10 ], [ 1:20 ], [ 1:30 ], [ 1:40 ] };
  • xi = [ 1 2 3 4; 5 6 7 8 ];
  • y = xinterpn(m, x, xi)

Group
Made with Doc-O-Matic.
Copyright (c) MZA Associates 2009. All rights reserved.
What do you think about this topic? Send feedback!