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.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Solve nonnegative linear least-squares problem

Solve nonnegative least-squares curve fitting problems of the form

$$\underset{x}{\mathrm{min}}{\Vert C\cdot x-d\Vert}_{2}^{2},\text{where}x\ge 0.$$

finds the minimum for `x`

= lsqnonneg(`problem`

)`problem`

, where `problem`

is
a structure. Create the `problem`

argument by exporting
a problem from Optimization app, as described in Exporting Your Work.

Was this topic helpful?