Description: decoder of Hamming
Use a [7,4] Hamming code.
m = 3 n = 2^m-1 k = n-m
parmat = hammgen(m) Produce parity-check matrix.
trt = syndtable(parmat) Produce decoding table.
recd = [1 0 0 1 1 1 1] Suppose this is the received vector.
syndrome = rem(recd* parmat ,2)
syndrome_de = bi2de(syndrome, left-msb ) Convert to decimal.
File list (Check if you may need any files):
ma_CRC_files
............\Decoding_Hamming.rar
............\docscripts_webdoc.js
............\docset.css
............\dom.css
............\fp13343.htm
............\fp13343_data
............\............\b_next.gif
............\............\b_prev.gif
............\............\docscripts.js
............\............\s78378197831942.gif
............\............\s_code.js
............\helptoc.htm
............\helptoc_data
............\............\docscripts.js
............\............\toc_section_nonempty_closed.gif
............\............\toc_section_nonempty_open.gif
............\site4.css
............\topbanner.htm
............\topbanner_data
............\..............\arrowr.gif
............\..............\breadcrumbs.css
............\..............\call.gif
............\..............\common.js
............\..............\fullwidth_globalnav.css
............\..............\horo_line_full.gif
............\..............\nav_active.gif
............\..............\nav_inactive.gif
............\..............\pic_cart_off.gif
............\..............\pixelclear.gif
............\..............\print.css
............\..............\printable_header.gif
............\..............\static_brows_sniff.js
............\..............\trial.gif