Problem 43169. Frequency Analysis of Text
Frequency analysis is a common task in cryptoanalysis. It is essentially counting the occurrences of alphabets (regardless of case).
So for example,
s = 'This is a very good day'
frequency = [2 0 0 2 1 0 1 1 2 0 0 0 0 0 2 0 0 1 2 1 0 1 0 0 2 0]
Frequency is organized from a-z.
Please write a program that performs this calculation.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers34
Suggested Problems
-
Return the largest number that is adjacent to a zero
5135 Solvers
-
7141 Solvers
-
Make a run-length companion vector
632 Solvers
-
805 Solvers
-
Determine the length of a string of characters
245 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!