Description: HUFFMAN Builds a variable-length Huffman code for a symbol source.
CODE = HUFFMAN(P) returns a Huffman code as binary strings in
cell array CODE for input symbol probability vector P. Each word
in CODE corresponds to a symbol whose probability is at the
corresponding index of P.
Based on huffman5 by Sean Danaher, University of Northumbria,
Newcastle UK. Available at the MATLAB Central File Exchange:
Category General DSP in Signal Processing and Communications.
To Search:
File list (Check if you may need any files):
huffman.m