| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Curve Fitting Toolbox |
| Contents | Index |
| Learn more about Curve Fitting Toolbox |
sftool
sftool(x,y,z)
sftool(x,y,z,w)
sftool(filename)
sftool opens Surface Fitting Tool or brings focus to the Tool if it is already open. Surface Fitting Tool is an interactive environment for fitting surfaces to data.
sftool(x,y,z) creates a fit to x and y inputs (or predictor data) and z output (or response data). x, y, and z must be double vectors of the same length, with two or more elements. sftool opens Surface Fitting Tool if necessary.
sftool(x,y,z,w) creates a fit with weights w. w must be a vector of the same length as x, y, and z.
sftool(filename) loads the surface fitting session in filename into Surface Fitting Tool. The filename should have the extension .sfit.
Infs, NaNs, and imaginary parts of complex numbers are ignored in the data.
Surface Fitting Tool provides a flexible and intuitive graphical user interface where you can interactively fit surfaces to data and view plots. You can:
Create, plot, and compare multiple surface fits
Use linear or nonlinear regression, interpolation, local smoothing regression, or custom equations
View goodness-of-fit statistics, display confidence intervals and residuals, remove outliers and assess fits with validation data
Automatically generate M-code for fitting and plotting surfaces, or export fits to workspace for further analysis
For instructions, see Interactive Surface Fitting.
![]() | sfit | smooth | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |