Please help my huffman encoding
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
>> 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.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/223701/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/223701/image.png)
2 Kommentare
Walter Roberson
am 9 Jun. 2019
Bearbeitet: Walter Roberson
am 9 Jun. 2019
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??
Antworten (0)
Siehe auch
Kategorien
Mehr zu Source Coding finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!