If gen matrix has even weigth rows, do codewords have even weigth for non binary code?

54 Views Asked by At

Is that true that in a non binary code C every codeword has even weight if and only if every row of G has even weight?

1

There are 1 best solutions below

0
On

No. Look at the $2 \times 2$ matrices $G$ over $\mathbb{Z}_3$. (There are only $3^4$ of them, so you can enumerate them to find a counterexample.)