Lab report using Matlab EE

Write a program or function in either Matlab or C/C++. Your program should generate all 2 4 possible 4-bit data or information sequences and encode them into all 2 4 possible (7, 4) Hamming codewords. Use the generator matrix ?(7,4) to encode u into v. Your program should also print out each 4-bit data or information sequence u and its corresponding (7, 4) Hamming codeword v. Include both your program, any input, and its output in your Project 1 report. (2) Given the set of 2 4 codewords you obtained, find the weight distribution ?? , for ? = 0, . . . ?. If you used Matlab to find the weight distribution, include all Matlab commands used and their output. (3) Given the set of 2 4 codewords you obtained, find the minimum distance ???? of the (7,4) Hamming code. Explain how you found dmin and include any Matlab command and output you used to calculate ????, if used. (4) How many errors can the (7, 4) Hamming code correct, based on its ????? (5) What is the rate ?? of the (7, 4) Hamming code?

Write your design and solution electronically

Sample Solution