null function

Null space of a matrix

Null space of a matrix

Given a matrix M find a matrix N such that NTMN^T M is zero.

null(M)

Arguments

  • M: A matrix.

Returns

The matrix N with the basis for the null space, or an empty vector if the matrix M is square and of maximal rank.

See Also

Null, ~~~

Examples

null(c(1,1,1))