huffman
No License
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
Cite As
Karl Skretting (2024). huffman (https://www.mathworks.com/matlabcentral/fileexchange/228-huffman), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Data Import and Analysis > Large Files and Big Data >
- Signal Processing > Wavelet Toolbox > Denoising and Compression >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
huffman/
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |