Copy a segment of text into MATLAB as a string (you choose the source of the text).
Then write a MATLAB program to count the relative frequency of each character (ignore all characters that do not correspond to one of the 26 letters and do not make a distinction between upper and lower case).
Using the results of your program, calculate the entropy of a source that outputs the 26 English characters with the probabilities you calculated.