Cody

Problem 13. Remove all the consonants

Solution 407244

Submitted on 21 Feb 2014 by Abdullah Caliskan
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
%% s1 = 'Jack and Jill went up the hill'; s2 = 'a a i e u e i'; assert(isequal(s2,refcn(s1)))

idx = 2 6 11 16 20 25 28 K = aaieuei G = a G = a a G = a a i G = a a i e G = a a i e u G = a a i e u e G = a a i e u e i idx = []

2   Pass
%% s1 = 'I don''t want to work. I just want to bang on the drum all day.'; s2 = 'I o'' a o o. I u a o a o e u a a.'; assert(isequal(s2,refcn(s1)))

idx = Columns 1 through 16 1 4 6 10 15 18 21 23 26 31 36 39 43 48 52 55 Columns 17 through 18 60 62 K = Io'aoo.Iuaoaoeuaa. G = I G = I o G = I o ' G = I o ' a G = I o ' a o G = I o ' a o o G = I o ' a o o . G = I o ' a o o . I G = I o ' a o o . I u G = I o ' a o o . I u a G = I o ' a o o . I u a o G = I o ' a o o . I u a o a G = I o ' a o o . I u a o a o G = I o ' a o o . I u a o a o e G = I o ' a o o . I u a o a o e u G = I o ' a o o . I u a o a o e u a G = I o ' a o o . I u a o a o e u a a G = I o ' a o o . I u a o a o e u a a . idx = 5 13 35

Suggested Problems

More from this Author95

Community Treasure Hunt

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

Start Hunting!