| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Communications Blockset |
| Contents | Index |
| Learn more about Communications Blockset |
Source Coding
The Differential Encoder block encodes the binary input signal. The output is the logical difference between the present input and the previous output. More specifically, the input and output are related by
d(t0) = m(t0) XOR Initial condition parameter value
d(tk) = d(tk-1) XOR m(tk)
where
m is the input message
d is the differentially encoded output.
tk is the kth time step.
XOR is the logical exclusive-or operator.
The input can be either a scalar or a vector.

The logical exclusive-or of this value with the initial input value forms the initial output value.
[1] Couch, Leon W., II, Digital and Analog Communication Systems, Sixth edition, Upper Saddle River, N. J., Prentice Hall, 2001.
![]() | Differential Decoder | Discrete-Time Eye Diagram Scope | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |