comm.DifferentialDecoder
Decode binary signal using differential decoding
Description
The comm.DifferentialDecoder
System object™ decodes the binary input signal. The output is the logical difference between
the consecutive input element within a channel. For more information, see Algorithms.
To decode a binary signal using differential decoding:
Create the
comm.DifferentialDecoder
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?
Creation
Syntax
Description
creates a
differential decoder System object. This object decodes a binary input signal that was previously encoded using
a differential encoder.diffdec
= comm.DifferentialDecoder
sets properties using one or more name-value arguments. For example,
diffdec
= comm.DifferentialDecoder(Name=Value
)comm.DifferentialDecoder(InitialCondition=5)
sets the initial
condition of the differential decoder to 5
.
creates a differential decoder object with InitialCondition set to
diffdec
= comm.DifferentialDecoder(initcond
)initcond
. For example, when initcond
is set to
1
, this syntax creates the differential decoder object and sets the
initial value used to generate initial output to 1.
Properties
Usage
Syntax
Description
decodes
the differentially encoded input data, Y
= diffdec(X
)X
, by using the differential
decoding scheme and returns the decoded data, Y
. For more
information, see Algorithms.
Input Arguments
Output Arguments
Object Functions
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)
Examples
Algorithms
The comm.DifferentialDecoder
output is the logical difference between the consecutive
input element within a channel. More specifically, the input and output are related by:
m(i1) = d(i1) XOR lastInupt (==InitialCondition property value for first input element)
m(ik) = d(ik) XOR d(ik-1), for k = 2:inputLen
lastInput = d(ik)
where:
d is the differentially encoded input.
m is the output message.
ik is the kth element.
inputLen is the length of d.
lastInput is the last element of d.
XOR is the logical exclusive-or operator.
Extended Capabilities
Version History
Introduced in R2012a