FUNCTION REFERENCE

lsqnonneg

Nonnegative linear least squares by an active-set iteration.

Nonnegative linear least squares by an active-set iteration.

Syntax

X = lsqnonneg(C,d); [X,resnorm,residual,exitflag,output,lambda] = lsqnonneg(C,d,options)

Example

lsqnonneg(eye(2), [2; -1])   % [2; 0]

Differences from MATLAB: Real double inputs and one response column; options TolX and MaxIter are supported.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.