In channel coding, you often generate and modulate the codeword all at zero to test performance of a decoder.
(For example codeword = zeros (1,n)
; x = 2*codeword-1
)
in other cases the codeword is generated and modulate from :word = rand(1,n)
; codeword = mod(word*G,2)
;x = 2*codeword-1
).
n
: length of codeword; G
: Generator matrix.
What is the difference between its two ways of proceeding and what is the advantage of generating and modeling a code word all at zero?