Dear colleagues.

Considering that ASCII characters take range from 32 to 127, so we need 7 bits to represent each character, what is the highest theoretical value of information entropy for a given text?

For example for grayscale images, since we represent each pixel using 8 bits and there is a maximum of 2^8=256 shades, the highest entropy value is 8.

Does this hold for text? So is the highest possible atainable value 7?

I am trying to configure this for a text encryption design.

Does the entropy command in MATLAB provide the correct result for this?

Similar questions and discussions