feval
Evaluate a tensor spline at matching-size query arrays.
Declaration
values = feval(spline,X1,...,Xn,options)
Parameters
splineTensorSpline instanceX1,...,Xnmatching-size query locations as one array per dimensionoptions.Dderivative order per dimension
Returns
valuesspline values with the same shape as the query input
Discussion
This is a thin wrapper around valueAtPoints(...). Paired column vectors give pointwise queries, while matching ndgrid arrays give gridded evaluation on a tensor-product lattice.
values = feval(spline, xq, yq);
[Xq,Yq] = ndgrid(linspace(-1,1,40), linspace(0,2,50));
F = feval(spline, Xq, Yq);