format : [huffcodes,H,Hav,e]=huffmancoding(p,n)
%inputs: p is the probability of each alphabet symbol
( eg:p=[.3 .2 .2 .2 .06 .04] )
n is an integer that determines number of symbols at each frame
(default:n=1)
%outputs: huffcodes: huffmancodes
H: source entropy
Hav: average entropy for coding
e: codding efficiency
引用格式
Alireza LIAGHAT (2026). HUFFMANCODING (https://ww2.mathworks.cn/matlabcentral/fileexchange/22442-huffmancoding), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2008b
兼容任何版本
平台兼容性
Windows macOS Linux类别
- MATLAB > Data Import and Analysis > Large Files and Big Data >
- Signal Processing > Wavelet Toolbox > Denoising and Compression >
在 Help Center 和 MATLAB Answers 中查找有关 Large Files and Big Data 的更多信息
