Representation of a binary communication channel

how do I do this?
using x=rand(1,10000)<0.5
generate a vector that represents an input sequence of 0s and 1s.
Simulate the channel by writing code to do the following:
For a 0 in the input sequence, the code should generate an output of 0
with probability .95 and an output of 1 with probability .05
For a 1 in the input sequence, the code should generate an output of 1
with probability .90 and an output of 0 with probability .10.

Answers (0)

Asked:

on 20 Oct 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!