필터 지우기
필터 지우기

Huffman source coding with Simulink

조회 수: 2 (최근 30일)
BN
BN 2015년 9월 3일
답변: Akshat Dalal 대략 11시간 전
Hi, I want to implement Huffman source coding in Simulink. But I am stuck. Which blocks do I need to use. Any help would be appreciated.

답변 (1개)

Akshat Dalal
Akshat Dalal 대략 11시간 전
Hi,
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:
  1. https://www.mathworks.com/help/simulink/what-is-a-matlab-function-block.html
  2. https://www.mathworks.com/help/comm/ref/huffmanenco.html
  3. https://www.mathworks.com/help/comm/ref/huffmandeco.html
  4. https://www.mathworks.com/help/comm/ref/huffmandict.html
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!

카테고리

Help CenterFile Exchange에서 Source Coding에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by