Step 1 - Decoding Huffman
recovered_signal = huffmandeco(code,dict);
Step 1 - Decoding Huffman
recovered_signal = huffmandeco(code,dict);
If the huffman decoding is accurate 'recovered_signal' should be equal to run_L_coded. We can check whether the two signals are equal by below command.
sum(run_L_coded-recovered_signal) %----------------> answer = 0