X = linsolve(A, B)
X = linsolve(A, B, opts)
[X, r] = linsolve(...)
| Parameter | Description |
|---|---|
| A | a coefficient matrix. |
| B | the right-hand side. |
| opts | a structure of options; field TRANSA solves A'*X = B. |
| Parameter | Description |
|---|---|
| X | the solution of A*X = B. |
| r | the reciprocal condition number estimate of A. |
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.
X = linsolve([2 0; 0 4], [6; 8])
| Version | Description |
|---|---|
| 2.0.0 | initial version |