Code covered by the BSD License  

Highlights from
Hamming Code

Be the first to rate this file! 32 Downloads (last 30 days) File Size: 7.15 KB File ID: #40208
image thumbnail

Hamming Code

by Marc-Andre Robichaud

 

07 Feb 2013

Hamming error correction codes, with functions to add/remove parity bits to binary strings.

| Watch this File

File Information
Description

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

Required Products MATLAB
MATLAB release MATLAB 7.13 (R2011b)
Tags for This File  
Everyone's Tags
communications, demo, signal processing, wireless
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.

Contact us