Problem 1757. Letter and word frequency

Solution 291370

Submitted on 29 Jul 2013 by Frequency Domain
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
%% % Cody External accessibility % This file may need to change in the future % First test -- read in coffee file %in_f=''; %in_f=''; %in_f=''; in_f=''; out_f='data1.txt'; urlwrite(in_f,out_f); s=dir(out_f) assert(strcmp(,out_f)) %assert(s.bytes==1643); result1 = textCount1(out_f); assert(length(result1)==2); countE=result1(1) assert(countE==5) %countE1Correct = 468 %countWords1Correct= 731 %assert(isequal(countE, countE1Correct)); %assert(isEqual(countWords, countWords1Correct));

s = name: 'data1.txt' date: '29-Jul-2013 02:47:47' bytes: 1910 isdir: 0 datenum: 7.3544e+05 ans = 5 1 countE = 5

Suggested Problems

More from this Author1

Community Treasure Hunt

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

Start Hunting!