function findvowels
s=input('Insert a word: ', 's');i=1;w=0;l=length(s);for i=i:lif s(i)=='a' || s(i)=='e' || s(i)=='i' || s(i)=='o' || s(i)=='u', w=w+1;endend
Good morning, I want to create a function where u enter a word and MATLAB counts the vowels. I run it but nothing exits, any ideas to resolve this?
Best Answer