Shannon-fano encoder
Version 1.0.0.0 (97.6 KB) by
Jamil Kasan
a shannonfano encoder with a row matrix input of occurrences/probab and outputs codewords&avelength
%made by Jamil Kasan from Manila, Philippines
%input = row matrix of occurrences or probabilities e.g. ss=[1 3 4 5] or
%ss=[0.4 0.3 0.2 0.1]
%outputs = string of codewords,average codeword length
to try its credibility, play sf encoder (need to change the location of ff7.txt)
sfencoderkasan is a function file for shannon-fano encoder
its input is a row matrix of occurrences or probabilities
its outputs are codex which is the codewords and T which is the average codeword length
Cite As
Jamil Kasan (2026). Shannon-fano encoder (https://uk.mathworks.com/matlabcentral/fileexchange/41727-shannon-fano-encoder), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2010a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- FPGA, ASIC, and SoC Development > Vision HDL Toolbox >
- Image Processing and Computer Vision > Vision HDL Toolbox >
Find more on Vision HDL Toolbox in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
