Non-linear regression GUI
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
Platform Compatibility
Windows macOS LinuxCategories
- AI, Data Science, and Statistics > Curve Fitting Toolbox > Linear and Nonlinear Regression >
- AI, Data Science, and Statistics > Statistics and Machine Learning Toolbox > Regression > Nonlinear Regression >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |