Question: MATLAB Remove all consonants Write a function called RemoveConsonants which removes all the consonants in a given phrase. The upper and lower case of the

MATLAB

MATLAB Remove all consonants Write a function called RemoveConsonants which removes all

the consonants in a given phrase. The upper and lower case of

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 Ex >>sl-"Jack and Jill went up the hill" ; output-RemoveConsonants (s1) output = "a a i e ue i" >251-"The Super Mario Game Everyone was waiting For Is Finally 0ut."; >> output= RemoveConsonants(s1) output = "e ue aio ae Eeoe a aii o I ia Ou." Your Function Save C Reset MATLAB Documentation 1 function s2 RemoveConsonants(s1) % Your solution goes here 4 5 end Code to call your function C Reset 1 S1"Jack and Jill went up the hill"; 2 output-RemoveConsonants(s1)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!