linsolve
Solve a linear system of equations.
📝Syntax
X = linsolve(A, B)
X = linsolve(A, B, opts)
[X, r] = linsolve(...)
📥Input Arguments
Parameter Description
A a coefficient matrix.
B the right-hand side.
opts a structure of options; field TRANSA solves A'*X = B.
📤Output Arguments
Parameter Description
X the solution of A*X = B.
r the reciprocal condition number estimate of A.
📄Description

X = linsolve(A, B) solves the linear system A*X = B.

X = linsolve(A, B, opts) uses the options in opts; set opts.TRANSA = true to solve A'*X = B.

💡Examples
X = linsolve([2 0; 0 4], [6; 8])
🔗See Also
invrref
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub