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?