-
2 Comments
s1 = 'Jack and Jill went up the hill';
s2 = 'a a i e u e i';
assert(isequal(s2,refcn(s1)))
a = [] n = 30 s2 = [] a = 'a' s2 = 'a' s2 = 'a' s2 = 'a' s2 = 'a' a = 'aa' s2 = 'aa' s2 = 'aa' s2 = 'aa' s2 = 'aa' s2 = 'aa' a = 'aai' s2 = 'aai' s2 = 'aai' s2 = 'aai' s2 = 'aai' s2 = 'aai' a = 'aaie' s2 = 'aaie' s2 = 'aaie' s2 = 'aaie' s2 = 'aaie' a = 'aaieu' s2 = 'aaieu' s2 = 'aaieu' s2 = 'aaieu' s2 = 'aaieu' s2 = 'aaieu' a = 'aaieue' s2 = 'aaieue' s2 = 'aaieue' s2 = 'aaieue' a = 'aaieuei' s2 = 'aaieuei' s2 = 'aaieuei' s2 = 'aaieuei'
explain me why it doesn't work?
Two things: (1) "y" is not normally considered a vowel, in everyday contexts; (2) you are omitting the spaces shown in s2 in the target solutions.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!