slexScramblerDescrambler model illustrates use of a scrambler-descrambler block pair.
The Scrambler and Descrambler block pair are initialized to the same values by setting block parameters to variables assigned using the InitFcn Callback. To view or change the initialization values, go to File > Model Properties > Callbacks > InitFcn. When you run the model, it displays the percentage of zeros at the input to the scrambler, output from the scrambler and output from the descrambler. For a binary signal, the scrambler outputs zeros or ones with equal probability. For perfect data recovery, the bit error rate is zero.