Method on @sym: null (A)

Basis for the nullspace of a symbolic matrix.

Return a matrix whose columns are a basis for the nullspace of the matrix. Examples:

A = sym([1 1; 2 0]);
null (A)
  ⇒ (sym) []  (empty 2×0 matrix)

A = sym([1 2; 1 2]);
null (A)
  ⇒ (sym 2×1 matrix)

      ⎡-2⎤
      ⎢  ⎥
      ⎣1 ⎦

A = sym(zeros(2,2));
null (A)
  ⇒ (sym 2×2 matrix)

      ⎡1  0⎤
      ⎢    ⎥
      ⎣0  1⎦

See also: @sym/rank, @sym/orth.

Package: symbolic