Arithmetic code to encode a string of char.

Arithmetic code to encode a string of char.
705 Downloads
Updated 16 Dec 2010

View License

It is a matlab function that codes a string of char with Arithmetic coding.

res=arithmetic_code(alphabet, distr_pr, string)

'alphabet' is a vector that contains the char used in the string 'string'; 'string' is the string to codify; 'distr_pr' is the probability distribution of the alphabet's elements.

Cite As

Andrea Cirillo (2026). Arithmetic code to encode a string of char. (https://www.mathworks.com/matlabcentral/fileexchange/29748-arithmetic-code-to-encode-a-string-of-char), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Characters and Strings in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0