Main Content

colspace

Basis for column space of matrix

Description

example

colspace(A) returns a symbolic matrix whose columns form a basis for the column space of the symbolic matrix A.

Examples

collapse all

Compute the basis for the column space of a symbolic matrix.

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

Input Arguments

collapse all

Input, specified as a symbolic matrix.

See Also

Introduced before R2006a