Back to Linear Algebra
qr
QR decomposition
Syntax
R = qr(A) [Q,R] = qr(A)
Description
With one output, returns the upper-triangular R factor. With two outputs, returns Q (orthonormal) and R (upper-triangular).
Parameters
| Name | Description |
|---|---|
| A | Input matrix (m×n) |
Returns
R matrix, or [Q, R] decomposition