huffdeco - Decoding of a compressed bit sequence.
huffdeco is the reverse operation to huffcode. The output arguments of huffcode can directly be used as input arguments for huffdeco
// Generate a Testmatrix A=testmatrix('frk',10)+1; A=A(:).'; [QT,QM]=huffcode(A); disp('compressed Bit sequence:'); disp(QT); disp('Code Table:'); disp(QM); // Now, the reverse operation B=huffdeco(QT,QM); disp('Original:'); disp(A); disp('Result after Uncompress:'); disp(B); plot2d(B-A); // End of Demo