Discrete source coding method based on Huffman code using Matlab
This repository contains the following source code files:
- HuffmanMain.m
- HuffmanDict.m - calculate Huffman codewords using an input alphabet and the corresponding odds
- HuffmanEnco.m - compress / encode a sequence of symbols into bits
- HuffmanDeco.m - decompression / decoding of a binary sequence into symbols
You can use your own "txt" and "mat" files (texts or images)