orth(M)
M
.B=orth(A)
returns an orthonormal basis for the range of A
.
The columns of B
span the same space as the columns of A
,
and the columns of B
are orthogonal to each other. The number of columns of B
is the rank of A
.
nullspace
M <- matrix(1:12, 3, 4)
mrank(M) #=> 2
orth(M)
Run the code above in your browser using DataLab