Please help my huffman encoding
2 次查看(过去 30 天)
显示 更早的评论
>> 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
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 Exchange 中查找有关 Source Coding 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!