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.


System object: comm.BinarySymmetricChannel
Package: comm

Introduce binary errors


Y = step(H,X)
[Y,ERR] = step(H,X)



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) adds binary errors to the input signal X and returns the modified signal, Y. The input signal can be a vector or matrix with numeric, logical, or fixed-point (fi objects) data type elements. The step method output, Y, has the same dimensions as the input, X. If X input contains a non-binary value, V, the object considers it to be 1 when abs(V) > 0. This syntax applies when you set the ErrorVectorOutputPort property to false.

[Y,ERR] = step(H,X) returns the error signal vector, ERR. A value of 1 at the i-th element of ERR indicates that an error was introduced at the i-th element of X. The outputs, Y and ERR, have the same dimensions as the input, X. This syntax applies when you set the ErrorVectorOutputPort property to true.


obj 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 (MATLAB) 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?