Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

step

System object: comm.BitToInteger
Package: comm

Convert vector of bits to vector of integers

Syntax

Y = step(H,X)

Description

    Note:   Starting in R2016b, instead of using the step method to perform the operation defined by the System object™, you can call the object with arguments, as if it were a function. For example, y = step(obj,x) and y = obj(x) perform equivalent operations.

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?