Cody

# Problem 13. Remove all the consonants

Solution 137216

Submitted on 8 Sep 2012 by Hardajit
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)))

s1 = Columns 1 through 12 74 97 99 107 32 97 110 100 32 74 105 108 Columns 13 through 24 108 32 119 101 110 116 32 117 112 32 116 104 Columns 25 through 30 101 32 104 105 108 108 v = Columns 1 through 10 98 99 100 102 103 104 106 107 108 109 Columns 11 through 20 110 112 113 114 115 116 118 119 120 121 Columns 21 through 30 122 66 67 68 70 71 72 74 75 76 Columns 31 through 40 77 78 80 81 82 83 84 86 87 88 Columns 41 through 42 89 90 s2 = Columns 1 through 10 1 0 1 1 0 0 1 1 0 1 Columns 11 through 20 0 1 1 0 1 0 1 1 0 0 Columns 21 through 30 1 0 1 1 0 0 1 0 1 1 s1 = Columns 1 through 12 97 32 97 32 105 32 101 32 117 32 101 32 Column 13 105 ans = a a i e u e i

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)))

s1 = Columns 1 through 12 73 32 100 111 110 39 116 32 119 97 110 116 Columns 13 through 24 32 116 111 32 119 111 114 107 46 32 73 32 Columns 25 through 36 106 117 115 116 32 119 97 110 116 32 116 111 Columns 37 through 48 32 98 97 110 103 32 111 110 32 116 104 101 Columns 49 through 60 32 100 114 117 109 32 97 108 108 32 100 97 Columns 61 through 62 121 46 v = Columns 1 through 10 98 99 100 102 103 104 106 107 108 109 Columns 11 through 20 110 112 113 114 115 116 118 119 120 121 Columns 21 through 30 122 66 67 68 70 71 72 74 75 76 Columns 31 through 40 77 78 80 81 82 83 84 86 87 88 Columns 41 through 42 89 90 s2 = Columns 1 through 10 0 0 1 0 1 0 1 0 1 0 Columns 11 through 20 1 1 0 1 0 0 1 0 1 1 Columns 21 through 30 0 0 0 0 1 0 1 1 0 1 Columns 31 through 40 0 1 1 0 1 0 0 1 0 1 Columns 41 through 50 1 0 0 1 0 1 1 0 0 1 Columns 51 through 60 1 0 1 0 0 1 1 0 1 0 Columns 61 through 62 1 0 s1 = Columns 1 through 12 73 32 111 39 32 97 32 111 32 111 46 32 Columns 13 through 24 73 32 117 32 97 32 111 32 97 32 111 32 Columns 25 through 32 101 32 117 32 97 32 97 46 ans = I o' a o o. I u a o a o e u a a.