colspace - Basis for column space

Syntax

B = colspace(A)

Description

B = colspace(A) returns a matrix whose columns form a basis for the column space of A. A is a symbolic or numeric matrix. Note that size(colspace(A),2) returns the rank of A.

Examples

The statements

A = sym([2,0;3,4;0,5])
B = colspace(A)

return

A =
[2,0]
[3,4]
[0,5]

B =
[    1,   0]
[    0,   1]
[-15/8, 5/4]

See Also

null, orth

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS