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
 | collect (sym) | | compose (sym) |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit