%% Extrapolate Bivariate B-Spline
% Create and plot a bivariate B-spline.

spline = spmak({0:3,0:4},1);
fnplt(spline)

%
% Create an extrapolating spline. To extrapolate in the first variable only, specify a negative integer as the extrapolation order in the second variable.

order = [3,-1];
extrSpline = fnxtr(spline,order);
fnplt(extrSpline)

%
% Copyright 2018 The MathWorks, Inc.