Lnsplint2

Parent Previous Next

Lnsplint2


2D Linear Spine Interpolation


Syntax


lnsplint2(x1, x2, y, t1, t2)

x1, x2 are vectors of length of m and n, y is a n-by-m matrix, t1 and t2 are scalars

Return a value interpolated from y = y(x1, x2) data set for (t1, t2) data point


Example


Input

Output

x1 = linspace(0, PI/5.0, 6)

x2 = linspace(0, 4, 5)

y= transpose(exp(x2)) * sin(x1)

lnsplint2(x1, x2, y, pi/2, 0.5)


See Also


Created with the Personal Edition of HelpNDoc: Single source CHM, PDF, DOC and HTML Help creation