Question: n Matlab, create a function that takes parameters N and p and does the following: Generate an array of N random bits Add a single
n Matlab, create a function that takes parameters N and p and does the following:
Generate an array of N random bits
Add a single parity bit to implement even parity ie new array should have length N
Simulate random errors with a bit error rate of p
o ie each bit is flipped with probability p
Compare the new bit string and count the number of errors that have occurred
o Return if no errors
o Return if you can detect errors with the parity code
o Return if errors occur that can not be detected with the parity code
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
