Description interp2 interpolates between data points. It finds values of a two-dimensional function underlying the data at intermediate points. Matrix Z contains the values of a two-dimensional function at the corresponding abscissae contained in matrices X and Y . X can be a row vector, in which case the elements are assumed to apply to the columns of Z . Similarly, Y can be a column vector and its elements are assumed to apply across the rows of Z .
Interpolation is the same operation as table lookup.
The 'cubic' method also requires that X and Y contain uniformly spaced points. Copyright 1994 by The MathWorks, Inc.