Communications Blockset    
Unipolar to Bipolar Converter

Map a unipolar signal in the range [0, M-1] into a bipolar signal

Library

Utility Functions

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

M-ary number
The number of symbols in the bipolar or unipolar alphabet.
Polarity
A value of Positive (respectively, Negative) causes the block to maintain (respectively, reverse) the relative ordering of symbols in the alphabets.

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

Bipolar to Unipolar Converter


  Uniform Noise Generator Viterbi Decoder