null - Basis for null space

Syntax

Z = null(A)

Description

The columns of Z = null(A) form a basis for the null space of A.

size(Z,2) is the nullity of A.

A*Z is zero.

If A has full rank, Z is empty.

Examples

The statements

A = sym(magic(4));
Z = null(A)
A*Z

return

[ -1]
[ -3]
[  3]
[  1]

[ 0]
[ 0]
[ 0]
[ 0]

See Also

Arithmetic Operations, colspace, rank, rref, svd, null in the online MATLAB® Function Reference.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS