辅导案例-EE435
EE435 Project 1 For the (7,4) Hamming code in this project, use the following systematic generator matrix G and parity-check matrix H. (1) Write a program or function in either Matlab or C/C++. Your program should generate all 24 possible 4-bit data or information sequences and encode them into all 24 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 24 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 24 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? Project report requirements: Write your design and solution electronically. Do NOT write on papers and scan it. You won’t get credit for any scanned item. Submit one pdf file. Due date and time: June 15th, 11:59 pm. A template of report is given on the next page. EE435 Project 1 Report This project is on the (7,4) Hamming code. I use MATLAB program (or C, or C++) for this project. (1) Information sequence u: Codewords v: MATLAB codes for this part: (2) The weight distribution : MATLAB codes for this part: (3) The minimum distance : MATLAB codes for this part: (4) Number of errors can be corrected: (5) The rate of the (7, 4) Hamming code: