clear; clc;
str = input('Enter a text: ', 's');
sep = input('Enter separator: ', 's');
if isempty(str)
    fprintf('''string'' is empty\n');
    return;
end
if isempty(sep)
    sep = ' ';
    fprintf('space ('' '') is used instead of nothing\n');
end
 
words  = strsplit(str, sep);
VS     = regexp(words, '[aeiyou]');
nVowels = cellfun(@length, VS);

celldisp(words);
fprintf('%s\n', mat2str(nVowels));