Curve Fitting Toolbox


Curve Fitting Toolbox

Fit curves and surfaces to data using regression, interpolation, and smoothing

Get Started:

Curve Fitting App

Import data from the MATLAB workspace and fit curves and surfaces. Conduct linear and nonlinear regression and interpolation.

Curve Fitting App

Fit curves using the Curve Fitting app or command-line fit functions.

Surface Fitting

Fit surfaces using the Curve Fitting app or command-line fit functions.

Surface Fitting using the Curve Fitting App.

Linear and Nonlinear Regression

Model a continuous response variable as a function of predictors using linear and nonlinear regression.

Linear Fitting

Apply linear regression by choosing from standard regression models or by using custom equations. All of the standard regression models include optimized solver parameters and starting conditions to improve fit quality.

Overview of Linear Regression Techniques.

Nonlinear Fitting

Apply nonlinear parametric regression using exponentials, Fourier series, power series, Gaussians, and standard models.

Surface Fitting With Custom Equations to Biopharmaceutical Data

Smoothing and Interpolation

Use interpolation to estimate values between known data points, and fit using smoothing splines and localized regression to smooth data.


Fit interpolating curves or surfaces, and estimate values between known data points.

Comparing Linear Interpolant Models.

Differences Between Model and Table Data in Investigating Fuel Efficiency.


After fitting a curve or surface, use postprocessing methods to plot the fit. Analyze if it is accurate, estimate confidence intervals, and calculate integrals and derivates.

Compare and Evaluate Fits

Create multiple fits, compare graphical and numerical results, and goodness-of-fit statistics. Use validation data to refine your fit.

Creating Multiple Fits in Curve Fitting App.


Customize plotting and perform additional analyses such as outliers, residuals, confidence intervals, integrals, and derivatives.

Displaying and Customizing Plots.


Construct splines with or without data. Control advanced spline operations including break/knot manipulation, optimal knot placement, and data-point weighting.

Fitting Splines to Data

Fit various splines to data, including cubic and smoothing splines with various end conditions, for curves, surfaces, and higher dimensional objects.

Fitting a Spline to Titanium Test Data.

B-Splines, Rational Splines, and NURBS

Create B-Splines and Uniform and Non-uniform Rational Splines (NURBS) for analysis of complex surfaces.

3D Spline.