Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to write huffman coding algorithm without using huffmanenco & huffmandeco ?

Status
Not open for further replies.

valentinacruise

Newbie level 1
Joined
Dec 15, 2014
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
6
i should code the huffman coding without matlab codes (huffenco and deco). i mean i should write huffmanenco & huffmanenco myself. can any body help me?
 

weetabixharry

Full Member level 4
Joined
Oct 9, 2013
Messages
205
Helped
69
Reputation
140
Reaction score
70
Trophy points
1,318
Location
Sweden
Activity points
3,195
Re: How to write huffman coding algorithm without using huffmanenco & huffmandeco ?

Why should you write them yourself? They are already written and working. If you mean you want to be able to see the source code yourself, just type the following into Matlab:


Code Matlab M - [expand]
1
2
edit huffmanenco
edit huffmandeco



There will be some extra error-checking stuff that you probably won't really need... but you can strip down the code however you want.

Alternatively, note that these functions have been implemented in GNU Octave (the free, open source version of Matlab). Because it is open source, you can freely access the code online:

https://sourceforge.net/p/octave/communications/ci/default/tree/inst/huffmanenco.m
https://sourceforge.net/p/octave/communications/ci/default/tree/inst/huffmandeco.m
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top