Search Documentation
Documentation
Toggle navigation
All Products
Optimization Toolbox
Getting Started
Examples
Functions
Release Notes
PDF Documentation
Least Squares
Linear Least Squares
Nonlinear Least Squares (Curve Fitting)
Linear Least Squares
Solve linear least-squares problems with bounds or linear constraints
Functions
lsqlin
Solve constrained linear least-squares problems
lsqnonneg
Solve nonnegative least-squares constraint problem
mldivide, \
Solve systems of linear equations Ax = B for x
Examples and How To
Optimization App with the lsqlin Solver
Linear Least Squares with Bound Constraints
Jacobian Multiply Function with Linear Least Squares
Concepts
Least Squares Definition
Trust-Region-Reflective Least Squares
Interior-Point Linear Least Squares
Was this topic helpful?
Optimization Toolbox Documentation
Getting Started
Examples
Functions
Release Notes
PDF Documentation
Other Documentation
MATLAB
Symbolic Math Toolbox
Global Optimization Toolbox
Curve Fitting Toolbox
Statistics and Machine Learning Toolbox
All Products
Support
MATLAB Answers
Installation Help
Bug Reports
Product Requirements
Software Downloads