Cody

Problem 13. Remove all the consonants

Solution 2125640

Submitted on 12 Feb 2020 by Zunaed Kibria
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 = 'Jack and Jill went up the hill' s1 = 'Jak and Jill went up the hill' s1 = 'Jak an Jill went up the hill' s1 = 'Jak an Jill went up the hill' s1 = 'Jak an Jill went up the hill' s1 = 'Jak an Jill went up te ill' s1 = 'Jak an Jill went up te ill' s1 = 'Ja an Jill went up te ill' s1 = 'Ja an Ji went up te i' s1 = 'Ja an Ji went up te i' s1 = 'Ja a Ji wet up te i' s1 = 'Ja a Ji wet u te i' s1 = 'Ja a Ji wet u te i' s1 = 'Ja a Ji wet u te i' s1 = 'Ja a Ji wet u te i' s1 = 'Ja a Ji we u e i' s1 = 'Ja a Ji e u e i' s1 = 'Ja a Ji e u e i' s1 = 'Ja a Ji e u e i' s1 = 'Ja a Ji e u e i' s1 = 'Ja a Ji e u e i' s1 = 'Ja a Ji e u e i' s1 = 'Ja a Ji e u e i' s1 = 'Ja a Ji e u e i' s1 = 'Ja a Ji e u e i' s1 = 'Ja a Ji 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' 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' 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' 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' s2 = '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 = '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' 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.' 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.' 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.' 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.' 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.' 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.' 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.' 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.' 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.' 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.' 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.' s1 = 'I o' a o o. I u a o a o e u a a.' s2 = 'I o' a o o. I u a o a o e u a a.'

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!