Please help my huffman encoding

1 回表示 (過去 30 日間)
Youngwook
Youngwook 2019 年 6 月 9 日
編集済み: Walter Roberson 2019 年 6 月 9 日
>> symbols=1:100000;
>> p=repelem(0.00001, 100000);
>> dict=huffmandict(symbols, p);
sig=randsrc(100, 1, [symbols; p]);
comp=huffmanenco(sig, dict);
dsig=huffmandeco(comp, dict);
isequal(sig, dsig)
I wrote it to encode symbols. But it doesn't work. What should I do? The program only rewrite commands that I wrote.
  2 件のコメント
Walter Roberson
Walter Roberson 2019 年 6 月 9 日
Unfortunately that image is too small to be readable.
Walter Roberson
Walter Roberson 2019 年 6 月 9 日
編集済み: Walter Roberson 2019 年 6 月 9 日
Wow, that sure is slow!
I wonder if it is still doing the search mechanism that I told them a few years ago was very inefficient and which I provided them with a replacement for??

サインインしてコメントする。

回答 (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