Introduction - If you have any usage issues, please Google them yourself
PN_GEN: This is a matlab function generates the Pseudo Noise sequnece of length (N)according to Generation Polynom and input state.
Inputs: G - Generation Polynom, Zin - Initial state of Shift register N - The length of PN sequence
Outputs: y - The resulting PN sequence
Z - The output state of Shift register