Cody

Solution 1571356

Submitted on 29 Jun 2018 by Srishti Saha
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='We are the MaTLaBins'; y_correct = 3; assert(isequal(VOWEL_COUNTER2(x),y_correct))

vw_set = '[AaEeIiOoUu]' y = 1×3 cell array {'a'} {'e'} {'i'} ans = 3

2   Pass
x='ThiS iS tHe MaTLaB CoDiNg'; y_correct = 4; assert(isequal(VOWEL_COUNTER2(x),y_correct))

vw_set = '[AaEeIiOoUu]' y = 1×4 cell array {'a'} {'e'} {'i'} {'o'} ans = 4

3   Pass
x='eDuCaTioN'; y_correct = 5; assert(isequal(VOWEL_COUNTER2(x),y_correct))

vw_set = '[AaEeIiOoUu]' y = 1×5 cell array {'a'} {'e'} {'i'} {'o'} {'u'} ans = 5

4   Pass
x='LaBoRaToRy'; y_correct = 2; assert(isequal(VOWEL_COUNTER2(x),y_correct))

vw_set = '[AaEeIiOoUu]' y = 1×2 cell array {'a'} {'o'} ans = 2

5   Pass
x='Deleted'; y_correct = 1; assert(isequal(VOWEL_COUNTER2(x),y_correct))

vw_set = '[AaEeIiOoUu]' y = 1×1 cell array {'e'} ans = 1

6   Pass
x='Dltd'; y_correct = 0; assert(isequal(VOWEL_COUNTER2(x),y_correct))

vw_set = '[AaEeIiOoUu]' y = 0×1 empty cell array ans = 0