When you enter the polynomial and initial condition of flip flop then this code generate pn sequence according to size of polynomial.
Ex Enter Poly [1 1 0 0 1]
initial condition = [ 1 0 0 0]
then you get 15 bit PN sequence
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.