im learning about hamming code
there is equation $x=uG$
where G is generator matrix
i need to find generator matrix from the codeword x
and u is message bit
suppose code word is $(100110)=(100)G$
then why G is (100110)? my basic in linear algebra is not good enough please give explanation thanks!