Arithmetic Coding and decoding

版本 1.0.0.0 (1.2 KB) 作者: Cavin Dsouza
Encodes a message using arithmetic coding and decodes it
1.7K 次下载
更新时间 2012/10/8

查看许可证

USES MATLAB built-in functions "arithenco" and "arithdeco" to encode and decode respectively the entered String message.

ARITHENCO Encode a sequence of symbols using arithmetic coding.
CODE = ARITHENCO(SEQ, COUNTS) generates binary arithmetic code corresponding to the sequence of symbols specified in the vector SEQ.
The vector COUNTS contains the symbol counts (the number of times each
symbol of the source's alphabet occurs in a test data set) and represents
the source's statistics.

ARITHDECO Decode binary code using arithmetic decoding.
DSEQ = ARITHDECO(CODE, COUNTS, LEN) decodes the binary arithmetic code
in the vector CODE (generated using ARITHENCO) to the corresponding
sequence of symbols. The vector COUNTS contains the symbol counts (the
number of times each symbol of the source's alphabet occurs in a test
data set) and represents the source's statistics. LEN is the number of symbols to be decoded.

引用格式

Cavin Dsouza (2024). Arithmetic Coding and decoding (https://www.mathworks.com/matlabcentral/fileexchange/38517-arithmetic-coding-and-decoding), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2008a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Encryption / Cryptography 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0