Compute the Entropy of an entered text string

版本 1.0.0.0 (1.3 KB) 作者: Cavin Dsouza
Computes the entropy of a user entered string.
1.1K 次下载
更新时间 2012/9/24

查看许可证

To compute Entropy the frequency of occurrence of each character must be found out.
The probability of occurrence of each character can therefore be found out by dividing each character frequency value by the length of the string message.

Using the mathematical definition of Entropy,the entropy of the string can be calculated.

引用格式

Cavin Dsouza (2024). Compute the Entropy of an entered text string (https://www.mathworks.com/matlabcentral/fileexchange/38295-compute-the-entropy-of-an-entered-text-string), MATLAB Central File Exchange. 检索来源 .

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

Community Treasure Hunt

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

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