huffman algoritm in matlab

6 ビュー (過去 30 日間)
hamid bs
hamid bs 2017 年 10 月 17 日
回答済み: KSSV 2017 年 10 月 17 日
Hi. what is huffman code in matlab by probilities x1=0.49, x2=0.26, x3=0.12, x4=0.04, x5=0.04, x6=0.03, x7=0.02.
with {0,1}
please answer me

採用された回答

KSSV
KSSV 2017 年 10 月 17 日
prob = [0.49, 0.26, 0.12, 0.04,0.04, 0.03, 0.02] ;
symbols = 1:length(prob);
dict = huffmandict(symbols,prob)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSource Coding についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by