The nullspace command computes a basis for the right nullspace of a matrix A. If the nullspace consists of only the zero vector then null is returned. An optional second argument P specifies the modulus.
A = [[1,0,2]]; B = nullspace(A); B; [[0, -2], [1, 0], [0, 1]] A*B; [[0, 0]]