using Matlab to solve the following, a, consider a data sequence encoded with a
ID: 3841745 • Letter: U
Question
using Matlab to solve the following,
a, consider a data sequence encoded with a (127,64) BCH code and then modulated using coherent 16-ary PSK.if the received Eb/No is 10 dB, find the MPSK probability of symbol error,the probability of code bit error ( assuming that a Gray code is used for symbol- to- bit assignment),and the probability of information -bit error.
b,For the same probability of information-bit error found in part (a),determine the value of Eb/No required if the modulation in part (a) is changed to coherent orthogonal 16-ary FSK.Explain the difference.
Explanation / Answer
Here is the code for you:
function largeStraight(seed)
% Write a function called problem3 that continuously generates a vector
% representing five dice. The function should continually simulate the
% rolling of five dice together (represented by random values between one
% and six in a fiveelement vector) until a "large straight" is achieved.
% A "large straight" is achieved when one simultaneous roll of five dice
% produces values 1, 2, 3, 4, 5 or values 2, 3, 4, 5, 6. The function
% should print each collective roll of the five dice until a large
% straight is achieved. Once a large straight is achieved, the function
% should print "Large straight! " (note the new line character at the end).
% Notice that this function "prints" its output, hence this function does
% not have any output arguments.
rng(seed);
C = [1 2 3 4 5];
D = [2 3 4 5 6];
while(1)
A = randi(6, 1, 5);
B = sort(A);
disp(A);
if B == C | B == D
disp('Large straight!');
return;
end
end
end
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.