MATLAB è Simulink íà ðóññêîì

https://hub.exponenta.ru/
\Communications Toolbox

CommunicationsToolbox:

  \ \

HUFFMANENCO

:

comp = huffmanenco(sig,dict)

:

comp = huffmanenco(sig,dict)
sig , dict. sig , . sig - , . dict N 2, N - . dict , - . -, dict . dict huffmandict.

:

, .

symbols = [1:6];                         %  
p = [.5 .125 .125 .125 .0625 .0625];     %  
[dict,avglen] = huffmandict(symbols,p);  %  
actualsig = randsrc(100,1,[symbols; p]); %     p
comp = huffmanenco(actualsig,dict);      %  

: huffmandict, huffmandeco.

:

[1] Sayood, Khalid, Introduction to Data Compression, San Francisco, Morgan Kaufmann, 2000.

   \ \


:


 Orphus