Q:

Explain in words what the following function accomplishes (not step-by-step, but what the end result is)

0

Explain in words what the following function accomplishes (not step-by-step, but what the end result is)

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

dostr.m

function out = dostr(inp)

persistent str

[w, r] = strtok(inp);

str = strcat(str,w);

out = str;

end

It takes the first word of every sentence passed to it, and concatenates

it to a string.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now