System object: comm.BinarySymmetricChannel
Introduce binary errors
Y = step(H,X)
[Y,ERR] = step(H,X)
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.
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.