image thumbnail


version (1.72 KB) by Aniruddha Phatak
The Huffamn encoder


Updated 28 Aug 2014

View License

The function displays the Huffman tree and the Huffman code for the input probabilities.
The input probabilities must be a row vector adding up to 1. eg a=[0.5 0.3 0.2]

Cite As

Aniruddha Phatak (2022). huffy.m (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!