Products & Services Solutions Academia Support User Community Company

Learn more about Symbolic Math Toolbox   

colspace - Return basis for column space of matrix

Syntax

B = colspace(A)

Description

B = colspace(A) returns a matrix whose columns form a basis for the column space of A. The matrix A is symbolic or numeric.

Examples

Find the basis for the column space of the following matrix:

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

The result is:

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

See Also

null | size

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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