Huffman code

Simple Huffman code implementation.
30.6K Downloads
Updated 6 Jul 2004

No License

This is an implementation of Huffman code. Content:
%NORM2HUFF Huffman codification (encoder)
%HUFF2NORM Huffman codification (decoder)
%HUFFCODES2BIN Convert huffcodes to binary representation

Max codeword length is 51 bits.

Cite As

Giuseppe Ridinò (2026). Huffman code (https://www.mathworks.com/matlabcentral/fileexchange/4900-huffman-code), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12.1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0

Improved speed of frequency function. Added demo, test and benchmark.