- https://www.mathworks.com/help/simulink/what-is-a-matlab-function-block.html
- https://www.mathworks.com/help/comm/ref/huffmanenco.html
- https://www.mathworks.com/help/comm/ref/huffmandeco.html
- https://www.mathworks.com/help/comm/ref/huffmandict.html
HUFFMAN CODE SOURCE IN SIMULINK
3 views (last 30 days)
Show older comments
I need to make a huffman code to be a source for a system in simulink.
Does anyone know how to tell you how to do it?
HELP HELP
0 Comments
Answers (1)
Akshat Dalal
on 26 Aug 2024
Hi Isaura,
Implementing Huffman code from scratch using Simulink Blocks can be a challenging task as calculating the frequencies of input character, and consequently building the Huffman tree is itself very challenging. From there on, encoding the string using only Simulink blocks possess another challenge.
Therefore, I would recommend you to use a MATLAB function block that uses the built-in 'huffmanenco' if you want to implement Huffman encoding in Simulink. Please refer to the following documentations for more information on the MATLAB function block, 'huffmanenco' and related functions:
Alternatilvely, you could also use the MATLAB function block to implement Huffman encoding from scratch for further modification. A comprehensive discussion on this can be found here: https://www.mathworks.com/support/search.html/answers/459170
I hope this helps!
0 Comments
See Also
Categories
Find more on Source Coding in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!