Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Linear Least Squares

Solve linear least-squares problems with bounds or linear constraints

Functions

lsqlin Solve constrained linear least-squares problems
lsqnonneg Solve nonnegative linear least-squares problem
mldivide, \ Solve systems of linear equations Ax = B for x

Topics

Linear Least Squares Examples

Optimization App with the lsqlin Solver

Example showing the Optimization app and linear least squares.

Linear Least Squares with Bound Constraints

Example showing the use of bounds in nonlinear least squares.

Jacobian Multiply Function with Linear Least Squares

Example showing how to save memory in a large structured linear least-squares problem.

Algorithms and Options

Least-Squares (Model Fitting) Algorithms

Minimizing a sum of squares in n dimensions with only bound or linear constraints.

Optimization Options Reference

Describes optimization options.

Was this topic helpful?