Cody

# Problem 43169. Frequency Analysis of Text

Solution 1001954

Submitted on 8 Oct 2016 by George Papazafeiropoulos
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
x = 'This is a very good day' y_correct = [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] assert(isequal(count_alphabet(x),y_correct))

x = This is a very good day y_correct = Columns 1 through 16 2 0 0 2 1 0 1 1 2 0 0 0 0 0 2 0 Columns 17 through 26 0 1 2 1 0 1 0 0 2 0

2   Pass
x = 'hAvE you Been haVInG fun so FaR ?' y_correct = [3 1 0 0 3 2 1 2 1 0 0 0 0 3 2 0 0 1 1 0 2 2 0 0 1 0] assert(isequal(count_alphabet(x),y_correct))

x = hAvE you Been haVInG fun so FaR ? y_correct = Columns 1 through 16 3 1 0 0 3 2 1 2 1 0 0 0 0 3 2 0 Columns 17 through 26 0 1 1 0 2 2 0 0 1 0

### Community Treasure Hunt

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

Start Hunting!