Matlab: Nullspace of a matrix mod p (i.e. over a finite field)

871 Views Asked by At

How can one compute the nullspace (or a basis of the nullspace) of a given matrix modulo a prime number $p$? I am specifically looking for the case $p=2$.

I have been googling heavily to find a solution to this question, but was unable to find anything.

edit: For example, Mathematica provides the command NullSpace[A, Modulus -> 5] which gives the basis vectors for the nullspace of A mod 5. And I was wondering whether there was a similar command in Matlab