Non-linear regression GUI

This GUI solves model-based non-linear regression problems of the univariate and multivariate form.
2.6K Downloads
Updated 21 Dec 2009

View License

The non-linear regression problem (univariate or multivariate) is easily posed using a graphical user interface (GUI) that solves the problem using one of the following solvers:
- nlinfit: only univariate problems.
- lsqnonlin: can deal with multivariate problems (more than one dependent fitting variable, ydata is a matrix).
- patternsearch: this solver is useful to obtain a good start point, before using nlinfit or lsqonolin; this way, the global minimum is determined easier.

Data is introduced in the GUI as vector or matrix from the workspace.
The model to be fitted must be written in an M-file in vectorized form:
ypred = model(x,xdata)
ypred is a column vector (univariate problem) or matrix (multivariate problem) with the model response (observations in rows).
x is a vector with the parameters of the model to be fitted.
xdata is a matrix with the independent variables in columns and observations in rows.

An example of a kinetic equation fitting using data from a batch chemical reactor is enclosed.

Requirements: Optimzation toolbox/ Statistic toolbox/ Genetic algorithm and direct search toolbox depending on the selected solver.

Cite As

Pablo Marín (2024). Non-linear regression GUI (https://www.mathworks.com/matlabcentral/fileexchange/26159-non-linear-regression-gui), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0