Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Huffman coding

Subject: Huffman coding

From: tresha

Date: 2 May, 2013 14:08:09

Message: 1 of 4

I have matlab 2013b and some of the syntaxes dont work on it when i am trying to write a program, so sometimes your help section doesnt help me when you give me a syntax... I have this assignment that i really need some help with...

Huffman coding was applied to compress a pcm.wav file.
1. A pcm.wav file was read into vector y;
2. Y was quantized into 8 levels (levels 0-7) using uniform quantization; The data was converted to binary and saved.
3. The probability of each symbol (8 symbol: level 0-7); the Huffman tree was constructed and the entropy of the source was calculated.
4. The symbols were encoded and form the compressed bit stream. This was then saved.
5. The coding efficiency was calculated and the compression ratio compared with PCM encoding.
Desperately need help...i tried for days to write this and it still dont work...

Subject: Huffman coding

From: Steven_Lord

Date: 2 May, 2013 15:23:53

Message: 2 of 4



"tresha " <treshaknight@yahoo.com> wrote in message
news:klts09$dm0$1@newscl01ah.mathworks.com...
> I have matlab 2013b

No, you don't. That hasn't been released yet. You may have release R2013a or
release R2012b, but not release R2013b.

> ? and some of the syntaxes dont work on it when i am trying to write a
> program, so sometimes your help section doesnt help me when you give me a
> syntax... I have this assignment that i really need some help with...
>
> Huffman coding was applied to compress a pcm.wav file.
> 1. A pcm.wav file was read into vector y;
> 2. Y was quantized into 8 levels (levels 0-7) using uniform quantization;
> The data was converted to binary and saved.
> 3. The probability of each symbol (8 symbol: level 0-7); the Huffman tree
> was constructed and the entropy of the source was calculated.
> 4. The symbols were encoded and form the compressed bit stream. This was
> then saved.
> 5. The coding efficiency was calculated and the compression ratio compared
> with PCM encoding.
> Desperately need help...i tried for days to write this and it still dont
> work...

Post the output of the command:

version

as well as what you've tried and someone may be able to offer suggestions.

If this is not homework, take a look at Communications System Toolbox:

http://www.mathworks.com/help/comm/source-coding.html

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: Huffman coding

From: tresha

Date: 2 May, 2013 19:48:08

Message: 3 of 4

"Steven_Lord" <slord@mathworks.com> wrote in message <klu0e8$t5p$1@newscl01ah.mathworks.com>...
>
>
> "tresha " <treshaknight@yahoo.com> wrote in message
> news:klts09$dm0$1@newscl01ah.mathworks.com...
> > I have matlab 2013b
>
> No, you don't. That hasn't been released yet. You may have release R2013a or
> release R2012b, but not release R2013b.
>
> > ? and some of the syntaxes dont work on it when i am trying to write a
> > program, so sometimes your help section doesnt help me when you give me a
> > syntax... I have this assignment that i really need some help with...
> >
> > Huffman coding was applied to compress a pcm.wav file.
> > 1. A pcm.wav file was read into vector y;
> > 2. Y was quantized into 8 levels (levels 0-7) using uniform quantization;
> > The data was converted to binary and saved.
> > 3. The probability of each symbol (8 symbol: level 0-7); the Huffman tree
> > was constructed and the entropy of the source was calculated.
> > 4. The symbols were encoded and form the compressed bit stream. This was
> > then saved.
> > 5. The coding efficiency was calculated and the compression ratio compared
> > with PCM encoding.
> > Desperately need help...i tried for days to write this and it still dont
> > work...
>
> Post the output of the command:
>
> version
>
> as well as what you've tried and someone may be able to offer suggestions.
>
> If this is not homework, take a look at Communications System Toolbox:
>
> http://www.mathworks.com/help/comm/source-coding.html
>
> --
> Steve Lord
> slord@mathworks.com
> To contact Technical Support use the Contact Us link on
> http://www.mathworks.com

sorry, i have r2012b.... wrote r2013b by mistake.... I just need to know the syntax for huffman code... for example huffmanenco,huffmandic does not exist in my matlab

Subject: Huffman coding

From: Nasser M. Abbasi

Date: 2 May, 2013 19:56:47

Message: 4 of 4


>
> sorry, i have r2012b.... wrote r2013b by mistake.... I just need to know the syntax for
>huffman code... for example huffmanenco,huffmandic does not exist in my matlab
>

need Communications System Toolbox :

http://www.mathworks.com/help/comm/ref/huffmanenco.html

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us