Huffman Coding
Versión 1.0.0 (1,3 KB) por
Isaac Llorente
This function provides the Huffman coding given a vector of probabilities. The probabilities can be any unsorted 1D matrix of numbers.
The following code was developed to find the Huffman code given a probability vector, not
necessarily sorted and not necessarily from 0 to 1 (for example, [5 6 6 7 15]).
The array of codes is updated at each iteration.
The resulting array of codes corresponds to the probability vector that was fed to the function.
Citar como
Isaac Llorente (2025). Huffman Coding (https://la.mathworks.com/matlabcentral/fileexchange/69697-huffman-coding), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2017b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Más información sobre Large Files and Big Data en Help Center y MATLAB Answers.
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 1.0.0 |
