Question: Remove all consonants Write a function called RemoveConsonants which removes all the consonants in a given phrase. The upper and lower case of the remaining
Remove all consonants
Write a function called RemoveConsonants which removes all the consonants in a given phrase. The upper and lower case of the remaining characters should remain unchanged. The input and output phrases are string scalars. The input string could be any length. Hint: The function should work for both upper and lower case.
Restrictions: Loops should not be used. The internal functions char(), string(), and ismember() should be used.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
