Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
17 years ago

How to generate PRBS in Matlab 7.0?

please help. . i will appreciate any help to how to generate PRBS in matlab.

am new to Matlab and badly needs help..

thanks

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    If you haven't a simulink block for prbs then:

    A=rand(1,100); // between 0 and 1

    A= round(A*100); //between 0 and 100

    A=dec2bin(A);

    help rand tells you more