step

System object: comm.BitToInteger
Package: comm

Convert vector of bits to vector of integers

Syntax

Y = step(H,X)

Description

Y = step(H,X) converts binary input, X, to corresponding integers, Y. The input must be a scalar or a column vector and the data type can be numeric, numerictype(0,1), or logical. The length of input X must be an integer multiple of the value you specify in the BitsPerInteger property. The object outputs a column vector with a length equal to length(X)/BitsPerInteger. When you set the SignedIntegerOutput property to false, the object maps each group of bits to an integer between 0 and (2BitsPerInteger)-1. A group of bits contains N bits, where N is the value of the BitsPerInteger property. If you set the SignedIntegerOutput property to true, the object maps each group of BitsPerInteger bits to an integer between -(2(BitsPerInteger-1)) and (2(BitsPerInteger-1))-1.

    Note:   H specifies the System object™ on which to run this step method.

    The object performs an initialization the first time the step method is executed. This initialization locks nontunable properties and input specifications, such as dimensions, complexity, and data type of the input data. If you change a nontunable property or an input specification, the System object issues an error. To change nontunable properties or inputs, you must first call the release method to unlock the object.

Was this topic helpful?