Communications Blockset    
Bipolar to Unipolar Converter

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

Library

Utility Functions

Description

The Bipolar to Unipolar Converter block maps the bipolar input signal to a unipolar output signal. If the input consists of integers in the set {-M+1, -M+3, -M+5,..., M-1}, where M is the M-ary number parameter, then the output consists of integers between 0 and M-1.

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
(M-1+k)/2
Negative
(M-1-k)/2

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 [-3; -1; 1; 3], the M-ary number parameter is 4, and the Polarity parameter is Positive, then the output is [0; 1; 2; 3]. Changing the Polarity parameter to Negative changes the output to [3; 2; 1; 0].

Pair Block

Unipolar to Bipolar Converter


  Binary Symmetric Channel Bit to Integer Converter