Code covered by the BSD License  

Highlights from
LibLip - Matlab toolbox for multivariate scattered data approximation

from LibLip - Matlab toolbox for multivariate scattered data approximation by Gleb Beliakov
Uses Lipschitz properties of a function to interpolate or approximate it from scattered data.

boundup(x,dim,p)
function res = boundup(x,dim,p)
% upper bound , parameter p not used, but it has to be declared
res = min(x(1),x(2));

Contact us at files@mathworks.com