Hamming Code

Hamming error correction codes, with functions to add/remove parity bits to binary strings.
2.4K 次下载
更新时间 2013/2/7

查看许可证

This is a program illustrating Hamming with 5 options:

1) Illustrated error correction walkthrough: takes a string input from the user and does the error induction, detection and correction step by step on screen.

2) Add parity bits to string: Asks the user to input a binary string and outputs the string with the added correct parity bits.

3) Remove parity bits from string: Asks the user to input a binary string and outputs the string with the parity bits removed.

4) How many parity bits does a string that is X long need?: Asks the user to input a string length (integer), outputs the number of parity bits a string of that length needs for Hamming.

5) Generate Hamming matrix: Asks the user to input a string length (integer) and generates a Hamming matrix, like the one that can be seen here: http://en.wikipedia.org/wiki/Hamming_code#General_algorithm

引用格式

Marc-Andre Robichaud (2026). Hamming Code (https://ww2.mathworks.cn/matlabcentral/fileexchange/40208-hamming-code), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2011b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Hamming 的更多信息
版本 已发布 发行说明
1.0.0.0