0
$\begingroup$

Can we generate PN codes (maximal length sequence) using this technique in Matlab where L is the PN length?

pn=2*(rand(1,L)>0.5)-1

If yes, why?

$\endgroup$

1 Answer 1

3
$\begingroup$

No.

This will just create a random sequence of 0 and 1. In order to create a maximum length sequence you need a primitive polynomial as a generator. See for example https://en.wikipedia.org/wiki/Primitive_polynomial_(field_theory)

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.