Matlab Huffman code

This Matlab code generates a Huffman codebook for a specified set of symbol probabilities.

Copyright © 2010 Robert G. Maunder. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

10 Responses to “Matlab Huffman code”

  1. hugo Says:

    thank you very much

  2. saman Says:

    i need this realy.
    thx for help

  3. mahmoudawney Says:

    thank you very much.real i want this code.

  4. sandeepreddy Says:

    thank you very much sir

  5. neha Says:

    thnk you :)

  6. Michael Says:

    Thank you

  7. Liangjun Says:

    Thanks for your help

  8. Unknown Says:

    Thank you for the code. It’s awesome!

  9. Pooja shah Says:

    Can you plz tell me how to write Huffman code in matlab with user entering the probabilities and asking the user to enter the base for getting the huffman code.

  10. Rob Says:

    Hi Pooja Shah,

    The Matlab code that you can download from this page will generate a Huffman codebook for you, when you provide it with the symbol probabilities. Here is some code a Huffman encoder and decoder…
    http://users.ecs.soton.ac.uk/rm/wp-content/HuffmanEncoder.m
    http://users.ecs.soton.ac.uk/rm/wp-content/HuffmanDecoder.m

    Take care, Rob.

Leave a Reply

Security Code: