colspace

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 can be symbolic or numeric.

Examples

Find the basis for the column space of this matrix:

A = sym([2,0;3,4;0,5])
B = colspace(A)
A =
[ 2, 0]
[ 3, 4]
[ 0, 5]
 
B =
[     1,   0]
[     0,   1]
[ -15/8, 5/4]

See Also

|

Was this topic helpful?