Communications Blockset | ![]() ![]() |
Map a unipolar signal in the range [0, M-1] into a bipolar signal
Library
Description
The Unipolar to Bipolar Converter block maps the unipolar input signal to a bipolar output signal. If the input consists of integers between 0 and M-1, where M is the M-ary number parameter, then the output consists of integers between -(M-1) and M-1. If M is even, then the output is odd, and vice-versa.
The table below shows how the block's mapping depends on the Polarity parameter.
Polarity Parameter Value |
Output Corresponding to Input Value of k |
Positive |
2k-(M-1) |
Negative |
-2k+(M-1) |
Dialog Box
Examples
If the input is [0; 1; 2; 3], the M-ary number parameter is 4
, and the Polarity parameter is Positive, then the output is [-3; -1; 1; 3]. Changing the Polarity parameter to Negative changes the output to [3; 1; -1; -3].
Pair Block
![]() | Uniform Noise Generator | Viterbi Decoder | ![]() |