cv.solve - MATLAB File Help
cv.solve

Solves one or more linear systems or least-squares problems

[dst,ret] = cv.solve(src1, src2)
[...] = cv.solve(..., 'OptionName', optionValue, ...)

Input

Output

Options

The function cv.solve solves a linear system or least-squares problem (the latter is possible with 'SVD' or 'QR' methods, or by specifying the flag 'IsNormal'):

dst = argmin_{X} ||src1*X - src2||

If 'LU' or 'Cholesky' method is used, the function returns 1 if src1 (or src1'*src1) is non-singular. Otherwise, it returns 0. In the latter case, dst is not valid. Other methods find a pseudo-solution in case of a singular left-hand side part.

Note

If you want to find a unity-norm solution of an under-defined singular system src1 * dst = 0, the function cv.solve will not do the work. Use cv.SVD.SolveZ instead.

See also