Function File: par = gen2par (gen)
Function File: gen = gen2par (par)

Converts binary generator matrix gen to the parity check matrix par and visa-versa. The input matrix must be in standard form. That is a generator matrix must be k-by-n and in the form [eye(k) P] or [P eye(k)], and the parity matrix must be (n-k)-by-n and of the form [eye(n-k) P’] or [P’ eye(n-k)].

See also: cyclgen, hammgen.

Package: communications