bsc
Binary symmetric channel
Syntax
Description
ndata = bsc(data,probability)
passes the
binary input signal data
through a binary symmetric channel
having the specified error probability. The channel introduces a bit error and
processes each element of the input data
independently.
data
must be an array of binary numbers or a Galois array in
GF(2). probability
must be a scalar from 0 to 1.
ndata = bsc(data,probability,streamhandle)
accepts a random stream handle to generate uniform noise samples by using rand
. Providing a random stream
handle or using the reset (RandStream)
function on the
default random stream object enables you to generate repeatable noise samples. For
more information, see RandStream
.
ndata = bsc(data,probability,seed)
accepts a seed value, for initializing the uniform random number generator,
rand
. If you want to generate
repeatable noise samples, then either reset the random stream input before calling
bsc
or use the same seed input.
[ndata,err] = bsc(___)
returns an array containing the channel errors, using any of the preceding
syntaxes.
Examples
Extended Capabilities
Version History
Introduced before R2006a