%% Fit a Polynomial Surface
% Load some data and fit a polynomial surface of degree 2 in x and degree 3 in y. Plot the fit and data.

load franke
sf = fit([x, y],z,'poly23')
plot(sf,[x,y],z)

% Copyright 2015 The MathWorks, Inc.