HUFFMANCODING

coding based on huffman method
1.6K Downloads
Updated 1 Jul 2010

View License

format : [huffcodes,H,Hav,e]=huffmancoding(p,n)
%inputs: p is the probability of each alphabet symbol
( eg:p=[.3 .2 .2 .2 .06 .04] )
n is an integer that determines number of symbols at each frame
(default:n=1)

%outputs: huffcodes: huffmancodes
H: source entropy
Hav: average entropy for coding
e: codding efficiency

Cite As

Alireza LIAGHAT (2024). HUFFMANCODING (https://www.mathworks.com/matlabcentral/fileexchange/22442-huffmancoding), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.3.0.0

compatible to MATLAB v:2010a

1.0.0.0