Descramble input signal
The comm.Descrambler object descrambles a scalar or column vector input signal. The comm.Descrambler
object is the inverse of the comm.Scrambler
object. If you use the comm.Scrambler
object in a transmitter, then you use the comm.Descrambler object in the
related receiver.
This schematic shows the descrambler operation. The adders and subtracter operate modulo N, where N is the value specified by the CalculationBase property.
At each time step, the input causes the contents of the registers to shift sequentially.
Using the Polynomial property, you specify the on
or off state for each switch in the descrambler. To make the comm.Descrambler
object reverse the operation of the comm.Scrambler
object, use the same property
settings in both objects. If there is no signal delay between the scrambler and the descrambler,
then the InitialConditions in the two
objects must be the same.
To descramble an input signal:
Create the comm.Descrambler
object and set its properties.
Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects?.
creates a
descrambler System object™. This object descrambles the input data by using a linear feedback shift register
that you specify with the Polynomial property.descrambler
= comm.Descrambler
creates the descrambler object with the CalculationBase property set to
descrambler
= comm.Descrambler(base
,poly
,cond
)base
, the Polynomial property set to
poly
, and the InitialConditions property set
to cond
.
comm.Descrambler(8,'1 + z^-2 + z^-3 + z^-5 + z^-7',[0 3 2 2 5 1
7])
sets the calculation base to 8
, and the descrambler
polynomial and initial conditions as specified.
sets properties using one or more name-value pairs and either of the previous syntaxes. Enclose
each property name in single quotes.descrambler
= comm.Descrambler(___,Name
,Value
)
comm.Descrambler('CalculationBase',2)
descrambles the input signal. The output is the same data type and length as the input vector. descrambledOut
= descrambler(signal
)
provides
an additional input with values specifying the initial conditions of the linear feedback shift
register.descrambledOut
= descrambler(signal
,initcond
)
This syntax applies when you set the InitialConditionsSource
property of the object to 'Input port'
.
provides an additional input indicating whether to reset the state of the descrambler.descrambledOut
= descrambler(signal
,reset
)
This syntax applies when you set the InitialConditionsSource
property of the object to 'Property'
and the ResetInputPort to
true
.
To use an object function, specify the
System object as the first input argument. For
example, to release system resources of a System object named obj
, use
this syntax:
release(obj)