QR decomposition: examplesMatrices > QR decomposition > Examples
Consider the
This matrix is full column rank. Indeed, the matlab command [Q,R]=qr(A,0) yields a
This shows that The command [Q,R]=qr(A) actually produces the full QR decomposition, with
We can see what happens when the input is not full column rank: for example let's consider the matrix
( The (full) QR decomposition now yields:
We observe that the last triangular element is virtually zero, and the last column is seen to be a linear combination of the first and the third. This shows that the rank of |