Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is important information needed to solve the question This is the question. Only solve the Simulating channel and Simulating receiver In coding theory, the

This is important information needed to solve the question

image text in transcribed

This is the question. Only solve the "Simulating channel" and "Simulating receiver"

image text in transcribed

In coding theory, the repetition code is one of the most basic error-correcting codes. In order to transmit a message over a noisy channel that may corrupt the transmission in a few places, the idea of the repetition code is to just repeat the message several times. The following is a simple repetition code that repeat each symbol 3 times. Simulating transmitter: 1- generate a sequence of data (0,1) randomly using command "randi" or any other command you know. (0 and 1 with the same probability). You can generate 10,000 bits or more. 2- encode data bits using repetition code described before. Simulating channel: 1- using "bsc" command in Matlab, add some error with the error probability p=0.05 and store the output of the channel in a variable. Simulating receiver: 1- write a program that decode the received data and map them into bits. To do this, you need to consider every three bits in the received data and then, map them according to the second table. 2- calculate the bit error rate (you can use your own code or "biterr" command in Matlab. 3- plot the bit error rate for different values of error probability p between zero and 1 (choose a sensible step that gives you a smooth curve) 4- compare the result with the case without using repetition code. What can you say about the performance of the repetition code in terms of error probability? Is it always efficient? In coding theory, the repetition code is one of the most basic error-correcting codes. In order to transmit a message over a noisy channel that may corrupt the transmission in a few places, the idea of the repetition code is to just repeat the message several times. The following is a simple repetition code that repeat each symbol 3 times. Simulating transmitter: 1- generate a sequence of data (0,1) randomly using command "randi" or any other command you know. (0 and 1 with the same probability). You can generate 10,000 bits or more. 2- encode data bits using repetition code described before. Simulating channel: 1- using "bsc" command in Matlab, add some error with the error probability p=0.05 and store the output of the channel in a variable. Simulating receiver: 1- write a program that decode the received data and map them into bits. To do this, you need to consider every three bits in the received data and then, map them according to the second table. 2- calculate the bit error rate (you can use your own code or "biterr" command in Matlab. 3- plot the bit error rate for different values of error probability p between zero and 1 (choose a sensible step that gives you a smooth curve) 4- compare the result with the case without using repetition code. What can you say about the performance of the repetition code in terms of error probability? Is it always efficient

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Accounting questions

Question

=+ (a) Show that a trifling set is negligible.

Answered: 1 week ago

Question

What lessons in OD contracting does this case represent?

Answered: 1 week ago

Question

Does the code suggest how long data is kept and who has access?

Answered: 1 week ago