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$
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, privacy policy and cookie policy

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