Size increases after encoding
1 view (last 30 days)
Show older comments
Finally i got through the problem in huffman encoding,but the size after encoding increases,please help
symbols = unique(YourVector(:));
counts = hist(YourVector(:), symbols);
p = double(counts) ./ sum(counts)
Walter Roberson on 25 Dec 2012
Remember, comp is representing binary, and so is 1 bit per element, whereas your original data is at least 8 bits per element.
Find more on Large Files and Big Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!