huffman

A set of MATLAB m-files (version 5.2) which do complete Huffman Coding.

Vous suivez désormais cette soumission

A set of MATLAB m-files (version 5.2) which do complete Huffman Coding.


The files are:

hufflen: Based on probability (or number of occurences) of each symbol the length for the Huffman codewords are calculated.

ex: HL = hufflen(S);


huffcode: Based on the codeword lengths this function find the Huffman codewords

ex: HK = huffcode(HL);


hufftree: Make the Huffman-tree from the length of Huffman codes

ex: Htree = hufftree(HL);


huff03: Huffman encoder/decoder, one or two vectors of non-negative integers are huffman coded.

ex: y = huff03(x1, x2); % encoding
ex: [x1, x2] = huff03(y); % decoding

Citation pour cette source

Karl Skretting (2026). huffman (https://fr.mathworks.com/matlabcentral/fileexchange/228-huffman), MATLAB Central File Exchange. Extrait(e) le .

Add the first tag.

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.0.0