Compute the Entropy of an entered text string
Versión 1.0.0.0 (1,26 KB) por
Cavin Dsouza
Computes the entropy of a user entered string.
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.
Citar como
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. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2008a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Más información sobre Characters and Strings en Help Center y MATLAB Answers.
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |