The following function is defined in the current directory….
The following function is defined in the current directory. Consider the function and answer the questions below. Answer the short-answer questions in the space provided below. 1 function final = superhero(heroes) 2 = strtok(heroes, ‘ ‘); 3 while ~isempty(current) 4 if mod(length(current), 2) == 1 5 final = current; 6 end 7 = strtok(potential, ‘ ‘); 8 end 9 end You run the following lines of code in your Command Window: >> heroes = ‘max tuanh nikita sam matt sunny bob’ >> output = superhero(heroes) Please indicate each answer by preceding it with the same letter that precedes the question. What is the value and class of the variable output after the code in the Command Window runs? How many times will the while loop on line 3 run after the code in the Command Window are run? What inputs would cause this code to error from an “output variable not defined…” error? You may give an example or clearly describe what format the example input would have.