Cody

# Problem 13. Remove all the consonants

Solution 1438499

Submitted on 11 Feb 2018 by Nishant Chandrashekhar
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)))

a = Columns 1 through 30 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 97 98 99 100 Columns 31 through 52 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 vow = 'aeiouAEIOU' a = Columns 1 through 30 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 98 99 100 101 Columns 31 through 51 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 a = Columns 1 through 30 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 98 99 100 102 Columns 31 through 50 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 a = Columns 1 through 30 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 98 99 100 102 Columns 31 through 49 103 104 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 a = Columns 1 through 30 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 98 99 100 102 Columns 31 through 48 103 104 106 107 108 109 110 112 113 114 115 116 117 118 119 120 121 122 a = Columns 1 through 30 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 98 99 100 102 Columns 31 through 47 103 104 106 107 108 109 110 112 113 114 115 116 118 119 120 121 122 a = Columns 1 through 30 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 98 99 100 102 103 Columns 31 through 46 104 106 107 108 109 110 112 113 114 115 116 118 119 120 121 122 a = Columns 1 through 30 66 67 68 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 98 99 100 102 103 104 Columns 31 through 45 106 107 108 109 110 112 113 114 115 116 118 119 120 121 122 a = Columns 1 through 30 66 67 68 70 71 72 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 98 99 100 102 103 104 106 Columns 31 through 44 107 108 109 110 112 113 114 115 116 118 119 120 121 122 a = Columns 1 through 30 66 67 68 70 71 72 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 90 98 99 100 102 103 104 106 107 Columns 31 through 43 108 109 110 112 113 114 115 116 118 119 120 121 122 a = Columns 1 through 30 66 67 68 70 71 72 74 75 76 77 78 80 81 82 83 84 86 87 88 89 90 98 99 100 102 103 104 106 107 108 Columns 31 through 42 109 110 112 113 114 115 116 118 119 120 121 122 s1 = 'Jack and Jill went up the hill' s1 = 'Jack and Jill went up the hill' s1 = 'Jack and Jill went up the hill' s1 = 'Jack and Jill went up the hill' s1 = 'Jack and Jill went up the hill' s1 = 'Jack and Jill went up the hill' s1 = 'ack and ill went up the hill' s1 = 'ack and ill went up the hill' s1 = 'ack and ill went up the hill' s1 = 'ack and ill went up the hill' s1 = 'ack and ill went up the hill' s1 = 'ack and ill went up the hill' s1 = 'ack and ill went up the hill' s1 = 'ack and ill went up the hill' s1 = 'ack and ill went up the hill' s1 = 'ack and ill went up the hill' s1 = 'ack and ill went up the hill' s1 = 'ack and ill went up the hill' s1 = 'ack and ill went up the hill' s1 = 'ack and ill went up the hill' s1 = 'ack and ill went up the hill' s1 = 'ack and ill went up the hill' s1 = 'ak and ill went up the hill' s1 = 'ak an ill went up the hill' s1 = 'ak an ill went up the hill' s1 = 'ak an ill went up the hill' s1 = 'ak an ill went up te ill' s1 = 'ak an ill went up te ill' s1 = 'a an ill went up te ill' s1 = 'a an i went up te i' s1 = 'a an i went up te i' s1 = 'a a i wet up te i' s1 = 'a a i wet u te i' s1 = 'a a i wet u te i' s1 = 'a a i wet u te i' s1 = 'a a i wet u te i' s1 = 'a a i we u e i' s1 = 'a a i we u e i' s1 = 'a a i e u e i' s1 = 'a a i e u e i' s1 = 'a a i e u e i' s1 = '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)))

a = Columns 1 through 30 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 97 98 99 100 Columns 31 through 52 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 vow = 'aeiouAEIOU' a = Columns 1 through 30 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 98 99 100 101 Columns 31 through 51 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 a = Columns 1 through 30 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 98 99 100 102 Columns 31 through 50 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 a = Columns 1 through 30 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 98 99 100 102 Columns 31 through 49 103 104 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 a = Columns 1 through 30 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 98 99 100 102 Columns 31 through 48 103 104 106 107 108 109 110 112 113 114 115 116 117 118 119 120 121 122 a = Columns 1 through 30 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 98 99 100 102 Columns 31 through 47 103 104 106 107 108 109 110 112 113 114 115 116 118 119 120 121 122 a = Columns 1 through 30 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 98 99 100 102 103 Columns 31 through 46 104 106 107 108 109 110 112 113 114 115 116 118 119 120 121 122 a = Columns 1 through 30 66 67 68 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 98 99 100 102 103 104 Columns 31 through 45 106 107 108 109 110 112 113 114 115 116 118 119 120 121 122 a = Columns 1 through 30 66 67 68 70 71 72 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 98 99 100 102 103 104 106 Columns 31 through 44 107 108 109 110 112 113 114 115 116 118 119 120 121 122 a = Columns 1 through 30 66 67 68 70 71 72 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 90 98 99 100 102 103 104 106 107 Columns 31 through 43 108 109 110 112 113 114 115 116 118 119 120 121 122 a = Columns 1 through 30 66 67 68 70 71 72 74 75 76 77 78 80 81 82 83 84 86 87 88 89 90 98 99 100 102 103 104 106 107 108 Columns 31 through 42 109 110 112 113 114 115 116 118 119 120 121 122 s1 = 'I don't want to work. I just want to bang on the drum all day.' s1 = 'I don't want to work. I just want to bang on the drum all day.' s1 = 'I don't want to work. I just want to bang on the drum all day.' s1 = 'I don't want to work. I just want to bang on the drum all day.' s1 = 'I don't want to work. I just want to bang on the drum all day.' s1 = 'I don't want to work. I just want to bang on the drum all day.' s1 = 'I don't want to work. I just want to bang on the drum all day.' s1 = 'I don't want to work. I just want to bang on the drum all day.' s1 = 'I don't want to work. I just want to bang on the drum all day.' s1 = 'I don't want to work. I just want to bang on the drum all day.' s1 = 'I don't want to work. I just want to bang on the drum all day.' s1 = 'I don't want to work. I just want to bang on the drum all day.' s1 = 'I don't want to work. I just want to bang on the drum all day.' s1 = 'I don't want to work. I just want to bang on the drum all day.' s1 = 'I don't want to work. I just want to bang on the drum all day.' s1 = 'I don't want to work. I just want to bang on the drum all day.' s1 = 'I don't want to work. I just want to bang on the drum all day.' s1 = 'I don't want to work. I just want to bang on the drum all day.' s1 = 'I don't want to work. I just want to bang on the drum all day.' s1 = 'I don't want to work. I just want to bang on the drum all day.' s1 = 'I don't want to work. I just want to bang on the drum all day.' s1 = 'I don't want to work. I just want to ang on the drum all day.' s1 = 'I don't want to work. I just want to ang on the drum all day.' s1 = 'I on't want to work. I just want to ang on the rum all ay.' s1 = 'I on't want to work. I just want to ang on the rum all ay.' s1 = 'I on't want to work. I just want to an on the rum all ay.' s1 = 'I on't want to work. I just want to an on te rum all ay.' s1 = 'I on't want to work. I ust want to an on te rum all ay.' s1 = 'I on't want to wor. I ust want to an on te rum all ay.' s1 = 'I on't want to wor. I ust want to an on te rum a ay.' s1 = 'I on't want to wor. I ust want to an on te ru a ay.' s1 = 'I o't wat to wor. I ust wat to a o te ru a ay.' s1 = 'I o't wat to wor. I ust wat to a o te ru a ay.' s1 = 'I o't wat to wor. I ust wat to a o te ru a ay.' s1 = 'I o't wat to wo. I ust wat to a o te u a ay.' s1 = 'I o't wat to wo. I ut wat to a o te u a ay.' s1 = 'I o' wa o wo. I u wa o a o e u a ay.' s1 = 'I o' wa o wo. I u wa o a o e u a ay.' s1 = 'I o' a o o. I u a o a o e u a ay.' s1 = 'I o' a o o. I u a o a o e u a ay.' s1 = 'I o' a o o. I u a o a o e u a a.' s1 = 'I o' a o o. I u a o a o e u a a.'

### Community Treasure Hunt

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

Start Hunting!